Latest Answer: Public constructors are used to instantiate and initialize the fields during object instantiation.Private constructors are used to restrict the instatiation of object using 'new' operator. This type of constructors are mainly used for creating singleton ...
Latest Answer: Yes : for set method i.e protected, andNo:for get methode.gpublic class A{ private string name; public string Name { get { ...
Latest Answer: Oops...The difference is that for a ref parameter, you have to assign a value before you call the function, while for OUT parameter, you dont have to assign a value, the calling function assumes that the called function would assign some value. ...
What is the difference between Cast and Convert
int i1 = 5;double d1 = i1 + 0.99;int i2 = (int)d1; //result is 5i2 = Convert.ToInt32(d1);//result is 6Why does cast and convert in above example have different results.
Latest Answer: In .NET 1.1 you can use the type "object" to store the values. You then have the choice of setting the object reference to "null" or storing the value. The issue here is that the object could contain any type of information ...
Latest Answer: goto>control panel->system->advanced->user variables.goto the Path title and edit it. Add the path of C# compiler. then save and exit. it's same as SETPATH in JAVA. the you can create your dir anywhere in your HDD and run program from DOS prompt. ...
Latest Answer: Binding refers the object type definition. You are using Early Binding if the object type is specified when declaring your object. Eg if you say Dim myObject as ADODB.Recordset that is early binding (VB example). If on the other hand you declare ...
Latest Answer: Boxing is converting a value-type to reference type. An example is converting an integer value to an object value.Ex: int intValue = 10; object obj = (object)intValue;This is used if you want to pass variables of object types ...
Latest Answer: The New keyword just hides the base's sealed method it does not really override the method. ...
Latest Answer: Searilization deals with converting objects into streams same as marshaling. mostly it relates with objects, while transfering over network like that. when it comes to encoding it relates with security aspects, data security, converts data into an encoded ...
View page << Previous 1 2 3 4 [5] 6 7 8 9 10 Next >>

Go Top