![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions The difference is that static read-only can be modified by the containing class, but const can never be modified and must be initialized to a compile time constant. To expand on the static read-only case Latest Answer : Constant : The constants are the one whose value remain same at all the time.it will be used if u want to define something at compile time.Read only....if you don't know value at compile time but u can find that at runtime that time u can use ... From language spec:The list of similarities between classes and structs is as follows. Longstructs can implement interfaces and can have the same kinds of members as classes. Structs differ from classes Latest Answer : Following are the main points of difference between classes and structs in C#:Value type vs Reference type: Structs are value type and classes are reference type. Whenever a struct object is assigned to another struct object a copy is created. In case ... Casting the char to an int will give you the ASCII value: char c = 'f';System.Console.WriteLine((int)c);or for a character in a string: System.Console.WriteLine((int)s[3]);The base class libraries Latest Answer : Ans:// Create an ASCII encoding. Encoding ascii = Encoding.ASCII;The base class libraries also offer ways to do this with the Convert class or Encoding classes if you need a particular ... In the interface all methods must be abstract; in the abstract class some methods can be concrete. In the interface no accessibility modifiers are allowed, which is ok in abstract classes. Latest Answer : Abstract classes act as the buliding block whose object cannot be created. We include common functionality in abstract class which can inherited by the sub classes. They are not 100% abstract whereas interface provide 100% abstraction in this no function ... Tags : Abstract System.String is immutable; System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed. Latest Answer : Answer: System.String is immutable; System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed. function checkf(form) { var f = document.form1;if (document.form1.cmt.value=='') { alert('Please ... The first one performs a deep copy of the array, the second one is shallow. Latest Answer : I felt the need of this posting because I have seen postings (not only in this forum but also in many others) saying that "CopyTo() makes a deep copy and Clone() makes a shallow copy." This is absolutely wrong.Both CopyTo() and Clone() ... Single-line, multi-line and XML documentation comments. Latest Answer : // Is for Single-Line Comments./* */ Is for Multi-Line Comments./// For XML Documentation Comments ... Single line code example and multiple-line code example. Latest Answer : Ans:Single line code example and multiple-line code example. ... Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds. Latest Answer : the Debug and the Trace classes are available in the Microsoft .NET Framework. You can use these classes to provide information about the performance of an application either during application development, or after deployment to production. ... Latest Answer : SERIALIZATION IS PROCESS OF LODING THE OBJECT STATE IN THE FORM OF BYTE STREAMS IN DATABASE/FILE SYATEM. ... Read Answers (3) | Asked by : Ranjith
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||