ruseg

Stories kicked by ruseg

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

Use DebuggerBrowsable attribute to clean up class view in a debugger(dotnettipoftheday.org)

submitted by gt1329agt1329a(7849) 4 years, 5 months ago

How to exclude extraneous class members from view in the debugger. read more...

1 comment |category: |Views: 8

tags: another

Speed up inserting records into database with SqlBulkCopy class(dotnettipoftheday.org)

submitted by pechapecha(105) 4 years, 6 months ago

When you need to insert a great deal of rows into database... read more...

add a comment |category: |Views: 67

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

Handling errors at the method level(dotnettipoftheday.org)

submitted by dmihailescudmihailescu(25) 4 years, 6 months ago

[Use a combination of try…Catch blocks as a retry mechanism for error handling. ] If you were going to retry something ,you better use conventioal error handling and keep the throw...catch for exceptional cases only. Try/catch is known to be slow. read more...

add a comment |category: |Views: 1

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

How to resolve relative url's without ResolveUrl(dotnettipoftheday.org)

submitted by antibugsantibugs(215) 4 years, 7 months ago

string absoluteUrl = VirtualPathUtility.ToAbsolute(relativeUrl); read more...

2 comments |category: |Views: 209

tags: another

Speed up Visual Studio 2005(dotnettipoftheday.org)

submitted by ferrymulyonoferrymulyono(395) 4 years, 7 months ago

Nice tricks to speed up Visual Studio 2005 read more...

add a comment |category: |Views: 144

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

The C# ?? Operator(dotnettipoftheday.org)

submitted by superghostsuperghost(2260) 4 years, 8 months ago

The C# ?? Operator read more...

8 comments |category: |Views: 11

tags: another

How to perform DateTime calculations in a right way(dotnettipoftheday.org)

submitted by SirkoSirko(105) 4 years, 8 months ago

When coding, be careful if you need to perform DateTime calculations (add/subtract) on values representing time zones that practice daylight savings time. read more...

2 comments |category: |Views: 12

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