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


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

What is addressof operator?

Posted By :Ramesh P     Posted Date :October 19, 2010    Points :10   Category :.NET Framework 
Addressof operator creates a delegate object to a method.

example:

Dim pthread1 as new thread(AddressOf thread1)

Here thread1 is a method. pthread1 is a delegate object.

You can also find related Interview Question to What is addressof operator?  below: 

What does AddressOf operator do in background ?

  
The AddressOf operator creates a delegate object to the BackgroundProcess method. A delegate within VB.NET is a type-safe, object-oriented function pointer. After the thread has been instantiated, you begin the execution of the code by calling the Start() method of the thread. (More...)

What does AddressOf operator do in background ?

  
The AddressOf operator creates a delegate object to the BackgroundProcess method. A
delegate within VB.NET is a type-safe, object-oriented function pointer. After the thread
has been instantiated, you begin the execution of the code by calling the Start() method
of the thread (More...)

What operator performs in pattern matching in SQL Server

  
LIKE operator is used in pattern matching in SQL Server (More...)

What is the use of ?? operator in C#?

  
This operator allows you to assign a value to a nullable type if the retrieved value is in fact null. (More...)

What does TOP Operator Do?

  
The TOP operator is used to specify the number of rows to be returned by a query. The TOP operator has new addition in SQL SERVER 2008 that it accepts variables as well as literal values and can be used with INSERT, UPDATE, and DELETES statements. (More...)

What points to be kept in mind while using conditional operator i.e. AND, NOT & OR operator?

  
AND operator: does not hurt the performance of the database engine the reason is that it in fact reduces the result from the result set.

OR operator : When Index is used with the OR operator then all the column used/referenced by the OR operator in the where clause must include in an index or none of the indexes are used.

NOT operator: It hurts the performance of the database engine the reason is that the query optimizer which optimizes the query is not able to use index for the where clause when ever a NOT operator is used/specified in the where clause of the query (More...)

Explain Rollup Operator?

  
The Rollup Operator is an aggregate operator that delivers aggregates and super aggregates for elements within a GroupBy statement (More...)

Why don't we use new operator while initializing a string ?

  
Strings are immutable reference types. There's the ldstr IL instruction which allows pushing a new object reference to a string literal. So when you write:

string a = "abc";
The compiler tests if the "abc" literal has already been defined in the metadata and if not declare it. Then it translates this code into the following IL instruction:

ldstr "abc"
Which basically makes the a local variable point to the string literal defined in the metadata.
(More...)

difference between IS and AS Operator?

  
IS: Expression evaluates True
Expression is not null
Expression can be cast to type.

as: cast except that it yields null on conversion failure instead of raising an exception.
(More...)

Explain Left Anti Semi Join Operator?

  
The Left Anti Semi Join operator returns the result set for each row from the first (top) input when there is no matching row in the second (bottom) input. If no join predicate exists in the Argument column, each row is a matching row. Left Anti Semi Join is a logical operator. (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