Stories recently tagged with 'ToString'

Take control of DateTime’s ToString() method.(vkreynin.wordpress.com)

submitted by vkreyninvkreynin(1424) 3 years, 7 months ago

An example how to format DateTime with ToString() method. read more...

add a comment |category: |Views: 25

tags: another

Useful Extension Method On String(deepakkapoor.net)

submitted by deepakkapoordeepakkapoor(430) 3 years, 7 months ago

.NET Framework provides String.IsNullOrEmpty() method which return true if the string is null or empty. It does not however take care of a string which only contains spaces. Often while persisting data we do not want to persist just empty strings. In past I have made this check before I let my data pass through. Today I thought of creating an extension method to do the same for me. read more...

add a comment |category: |Views: 32

tags: another

Overriding ToString for Easier Debugging(jeremyjarrell.com)

submitted by jeremyjarrelljeremyjarrell(2685) 4 years, 5 months ago

Did you know that you can override the ToString() method to make the debugger show you more information about your objects in the watch window. It's quick, it's easy, and it really works! read more...

1 comment |category: |Views: 6

tags: another

Always implement the ToString() method(blog.slaven.net.au)

submitted by dalzieldalziel(6230) 4 years, 10 months ago

Implementing the ToString() method make debugging a whole lot easier read more...

add a comment |category: |Views: 1

tags: another

Custom object and ToString() (gaaton.blogspot.com)

submitted by HaGeverHaGever(915) 5 years, 2 months ago

It is known that in the C # any object can be shown in the form of string by the method ToString () but what to do if you need to make such an operation with custom object? That is one solution.... read more...

add a comment |category: |Views: 2

tags: another