what is Anonymous Method.? and
What is shadowing?
Answers were Sorted based on User's Feedback
Answer / guest
methods with no names are called as annonymous methods
when two or more programing elements eg.a method has same
name that of other then one method is hiden and has no
reference this is known as shadowing
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / kavitha
Anonymous method - those method which does have any name and
type.. while declaration but its type is defined dynamically
depending upon the type the method
for eg-
int n = 0;
Del d = delegate() { System.Console.WriteLine("Copy #:{0}",
++n); };
shadowing - if two methods have the same name and
signature. we can hide the scope of one method to access
another method
using shadow keyword .
for eg - we can use tostring() method in our program by
Public Class Class2
Inherits Class1
Shadows Sub MethodA()
MsgBox(“Method A Class2 called”)
End Sub
Overrides Sub MethodB()
MsgBox(“Method B Class2 called”)
End Sub
End Class
| Is This Answer Correct ? | 6 Yes | 2 No |
What is a reference type c#?
What is the use of static abstract class
5 Answers Karur Vysya Bank KVB, Target,
Explain the difference between boxing and unboxing.
Explain the working of serialization?
Is c# front end or back end?
Explain manifest & metadata in c#.
if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.
Which language is used for desktop application?
What is or operator in c#?
hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?
What is literal control
Why do we use stringbuilder in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)