.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> C# >> Post New Question Subscribe to Interview Questions

What is the CIL representation of implicit and explicit keywords in C#?

Posted By :Abhisek Panda     Posted Date :December 28, 2009    Points :10   Category :C# 
The CIL representation is op_Implicit and op_Explicit respectively.

You can also find related Interview Question to What is the CIL representation of implicit and explicit keywords in C#?  below: 

Did VbScript supports both explicit and implicit constants.

VBScript supports both explicit and implicit constants. (More...)

What is implicit cast and explicit cast in .Net?

Implicit cast allows conversion without any loss of data and it takes place only when there is no possible of loss of data. When there is any possibility of loss of data, explicit cast is required. Remember, explicit cast if not applied properly can result a loss of data precision. (More...)

Why do we use Option Explicit?

Correct answer is - This statement force the declaration of
variables in VB before using them. (More...)

When retrieving List items using SharePoint Web Services, how do you specify explicit credentials to be passed to access the list items?

In order to specify explicit credentials with a Web Service, you generally instantiate the web service, and then using the credentials properties of the Web Service object you use the System.Net.NetworkCredential class to specify the username, password, and domain that you wish to pass when making the web service call and operations.

What is the need of implicit keyword in C#?

The implicit keyword is used to declare an implicit user-defined type conversion operator

Example: Let Employee and Person are 2 diff classe

Person person = new Person();
person.Name = "Fname";

Employee employee = person; // This is the magic!!

How to achieve this?
Create two classes Person and Employee with Name property.
Place the following code inside Employee class:

public static implicit operator Employee(Person person)
Employee employee = new Employee();
employee.Name = person.Name;

return employee;
} (More...)

Name the Implicit .NET Namespaces in WPF?

WPF maps all of the following .NET namespaces


. System.Windows.Automation

. System.Windows.Controls

. System.Windows.Controls.Primitives

. System.Windows.Data

. System.Windows.Documents

. System.Windows.Forms.Integration

. System.Windows.Ink

. System.Windows.Input

. System.Windows.Media

. System.Windows.Media.Animation

. System.Windows.Media.Effects

. System.Windows.Media.Imaging

. System.Windows.Media.Media3D

. System.Windows.Media.TextFormatting

. System.Windows.Navigation

. System.Windows.Shapes (More...)

What is Optional Explicit in VB.net ?

When a variable is assigned with Option Explicit the variable must and should be declared .

Use Option Explicit to avoid incorrectly typing the name of an existing variable or to avoid confusion in code where the scope of the variable is not clear. If you do not use the Option Explicit statement, all undeclared variables are of Object type.

Usage : Option Explicit On

What is the meaning of OverRides and Overridable
keywords ?

Overridable is used in parent class for a method can be overridden. Overrides is used in the child class to imply that you are overriding a method (More...)

Explain Accessibility keywords?

public Can be accessed by any class
private Can be accessed only by members inside the current class
internal Can be accessed by members in any of the classes in the current assembly(the file with the compiled code)
protected Can be accessed by members in the current class or in any class that inherits from this class
protected internal Can be accessed by members in the current application (as with internal) and
by the members in any class that inherits from this class (More...)

list out of implicit converted of char?


ushort, int, uint, long, ulong, float, double, or decimal. (More...)

what are the Keywords apply to event?

static,virtual,sealed and Abstract. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend