- When a class member includes a static modifier,the member is called as static member.When no static modifier is present the member is called non-static or instance member.
- Static members are invoked using class name where as instance members are invoked using instances(objects) of the class.
- An instance member belongs to specific instance(object) of a class.If we create three objects of a class we have three sets of instance members in the memory, where as there will ever be only one copy of the static member,no matter how many instances of a class are created.
What is GAC? Where is it located?
Global assembly cache (GAC) is a folder in windows directory to store the .NET assemblies that are specifically designated to be shared by all applications executed on a system. Assemblies can be shared among multiple applications on the machine by registering them in global assembly cache(GAC).
What is Assembly?
An Assembly is a “unit of deployment” for .NET ,almost always a .exe or .dll. A .NET assembly is a file that contains our compiled code, code that can execute under supervision of Common Language Runtime.
In C# terms its basically a single C# project.
Assemblies are building blocks of .NET Framework applications; they form the fundamental unit of deployment ,version control, reuse ,activation, scoping and security permissions.
An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. An assembly provides the common language runtime with the information it needs to be aware of the type implementations. To the runtime, a type does not exist outside the context of an assembly.
What is a Object?
An object is an entity that has Properties for identifying State, Methods for behavior, Events for depicting the change of State.
Data associated at any given instance of time is the state of an object.
Every object differs from other objects either by state or behavior.
Using Column Names “FROM” and “TO” in a table and trying to lnsert data into table
When in a database if you have a table with column names “FROM” and “TO” you should be careful while trying to reference these column names in your sql command.
You should enclose these column names in square brackets so that SQL will identify them as column names and our command works as we expected without any errors.
You should enclose as shown here:
Select CompanyName,[From],[To],Skillset from WorkExperience
What is CLR
What is Garbage Collector?
- It would enable us to develop our application without having to free memory.
- It allocates objects on managed heap efficiently.
- It reclaims the objects that are no longer being used, clears their memory and keeps the memory available for future allocations.
- It provides memory safety by making sure that an object cannot use the context of another object.