manovich

Stories submitted by manovich

How to check email works with no SMTP(dotnettipoftheday.org)

submitted by manovichmanovich(755) 4 years, 4 months ago

Testing code that sends email has always been a pain. You had to set up a SMTP service just to test that your .NET application sends the e-mail correctly... read more...

2 comments |category: |Views: 85

tags: another

Create elegant code with Action delegate and List.ForEach method(dotnettipoftheday.org)

submitted by manovichmanovich(755) 4 years, 6 months ago

Small example of how to use Action delegate to perform some action on all elements of a collection. read more...

9 comments |category: |Views: 645

tags: another

How to call a surrogate for Dispose() on StringBuilder objects(dotnettipoftheday.org)

submitted by manovichmanovich(755) 4 years, 7 months ago

How to release memory used by StringBuilder without calling System.GC.Collect(). read more...

1 comment |category: |Views: 82

tags: another

How to determine whether a property or a method is more appropriate(dotnettipoftheday.org)

submitted by manovichmanovich(755) 4 years, 7 months ago

Guidelines for choosing between implementing a class member as a property or a method. read more...

6 comments |category: |Views: 2

tags: another

Validate integer value before casting it to an Enum type(dotnettipoftheday.org)

submitted by manovichmanovich(755) 4 years, 7 months ago

There is one thing you should watch out for when using enumerations. You can cast any integer to an Enum type and you will not get an exception message. read more...

add a comment |category: |Views: 17

tags: another

Do not include the "@" when supplying stored procedure parameter names(dotnettipoftheday.org)

submitted by manovichmanovich(755) 4 years, 8 months ago

Avoid using database-specific tokens with stored procedure parameter names. read more...

add a comment |category: |Views: 2

tags: another

Use DebuggerDisplay attribute for Easier Debugging(dotnettipoftheday.org)

submitted by manovichmanovich(755) 4 years, 8 months ago

Did you know that you can appply DebuggerDisplay attribute to a class or member to determine how it is displayed in the watch window. It's quick, it's easy, and it really works! read more...

add a comment |category: |Views: 65

tags: another