It always references the UTC (GMT) time
It always references the Local time
It contains a member indicating which time zone it refers to
It contains a member indicating whether the time is UTC, Local, or Unspecified
Useful resources, DateTime
The method provided by the TimerCallback delegate will always be invoked on the thread which created the timer.
The thread which creates the timer must have a message processing loop (i.e. be considered a UI thread)
The class contains protection to prevent reentrancy to the method provided by the TimerCallback delegate
You can receive notification of an instance being Disposed by calling an overload of the Dispose method
string t = "This Is a Test"; t.Replace("T", "?"); Console.WriteLine(t);
?his Is a ?est
?his Is a ?es?
This Is a Test
?his Is a Test
String is immutable, it’s can’t be modified. Replace will return new string. So we will not see any changes in our variable value “t”. Useful resources, String
The permissions of the code which invoked the Demand method will be evaluated.
For permissions which do a stack walk, an exception will occur only if NONE of the calling codes has the required permission
For permissions which do a stack walk, an exception will occur if ANY of the calling codes does not have the required permission
The permission levels of individual stack frames are always checked regardless of the permission type.
They encapsulate native resource and must be properly Disposed to prevent potential exhausting of resources.
They are all MarshalByRef derived classes, but functionality across AppDomains has specific limitations.
You can inherit from these classes to provide enhanced or customized functionality
They are Value Type objects.
They must be inherited from the System.Attribute
Attributes are instantiated at the same time as instances of the class to which they are applied.
Attribute classes may be restricted to be applied only to application element types.
By default, a given attribute may be applied multiple times to the same application element.
All attribute types derive directly or indirectly from the Attribute class. Attributes can be applied to any target element; multiple attributes can be applied to the same target element; and attributes can be inherited by an element derived from a target element. Use the AttributeTargets class to specify the target element to which the attribute is applied. Useful resources, Attribute Class , Attribute
Use the DataRowCollection.Remove method to immediately delete the row.
use the DataRowCollection.Remove method to mark the row for deletion when DataRow.AcceptChanges is called.
use the DataRow.Delete method to immediately delete the row
use the DataRow.Delete method to mark the row for deletion when DataRowAcceptChanges is called.
Restricted to a Specific Application
Restricted to a Specific AppDomain
Restricted to a Specific User
Restricted to a specific Physical Media
StringBuilder sb = new StringBuilder(10); sb.AppendFormat("1234567890123"); Console.WriteLine(sb.Capacity);
Some value equal to or larger than 13
Number in parameter denotes the capacity. The capacity parameter defines the maximum number of characters that can be stored in the memory allocated by the current instance. If the number of characters to be stored in the current instance exceeds capacity value, the StringBuilder object allocates additional memory to store them. Useful resources, StringBuilder Class, StringBuilder Constructor