|
| |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
- An assembly is a unit of deployment, whereas a namespace is a scope for type definition.
- An assembly house executable code, a namespace simplifies the manner in which it can be accessed.
- A single assembly can contain multiple namespaces.
Any more comments ... |
|
I am sure many of you must be using "\r\n" in C# and vbCRLF in VB.NET for inserting a newline character. Even I do the same until today when I was doing something with Environment class and I encountered Environment.NewLine... I started wondering what is this property doing here... while reading further I understood that "\n\r" or "vbCLRF" format of newline is valid for Win32 environments only. what suppose if the same was run on different OS, like Unix..
Environment.NewLine property is intended for platform-independent formatting of multi-line strings. This value is automatically appended to text when using WriteLine methods, such as
System.Console.WriteLine, Wow!! |
|
| Working for foreign clients
with different TimeZone?? Here is a cool tool that conveniently runs in
the system tray and allows you to easily view the date and time in various
locations around the world. You can also quickly and easily add your own
personal locations to customize Microsoft Time Zone the way you want
TimeZone.MSI |
|
| I was browsing through
System.Diagnostics namespace and I got attention of Stopwatch class. Out
of curiosity, I had a little experiment with it. its a very small utility
class. May a time we want to benchmark a piece of code
and we do it by calling DateTime.Now at beginning and end of code snippet.
StopWatch class is better way to accurately measure elapsed time.
Dim sWatch new
StopWatch()
StopWatch.StartNew()
'Place the code to be benchmarked here.
sWatch.Stop()
You can later query Elapsed, ElapsedMilliseconds, or ElapsedTicks to retrieve the elapsed time.
There is something more to explore on "Stopwatch.IsHighResolution"..
known as high-resolution timer... will update blog if I find more details
on it. Keep watching this blog space
|
|
|
|
|
|
|
|
|
|
|
|