Is it true that objects don't always get destroyed immediately when the last reference goes away?

Friday, December 11, 2009


Yes. The garbage collector offers no guarantees about the time when an object will be destroyed and its memory reclaimed.


www.codecollege.NET

Daily Tips- Tip #37 - What is the best way to check for a null and an empty value in a string?


string mystr;
if (String.IsNullOrEmpty(mystr))


www.codecollege.NET

Daily Tips- Tip #36 - How to view trace details for a specific request?

Thursday, December 10, 2009


To view trace details for a specific request
1.Goto to Trace.axd in the root of your application.

For ex: if the URL for your application is http://localhost/myApplication, Goto http://localhost/myApplication/trace.axd to view the trace information for that application.

2.Select the View Details link for the specific request that you want to investigate.



www.codecollege.NET

How to enable application level Tracing?


<configuration>
<system.web>
<trace enabled="true" pageOutput="false" requestLimit="40" localOnly="false"/>
</system.web>
</configuration>


www.codecollege.NET

Which class has culture information used for resource files?

Wednesday, December 9, 2009


Thread.CurrentThread.CurrentUICulture


www.codecollege.NET

Which class do we need to assign formatting related culture information?


Thread.CurrentThread.CurrentCulture


www.codecollege.NET

How will you create a specific culture?


CultureInfo.CreateSpecificCulture()


www.codecollege.NET
Blog Widget by LinkWithin