If a class is a ref type, how we can pass to a function.
Answer / sujai cn
We can pass the object to a function by pass by reference
type.
create an object and pass that object to the function.
when we pass the object to function a copy constructor is
used to create a bit wise copy of the object sent to the
function.If there is no copy constructor implemented the
default copy constructor is called.
| Is This Answer Correct ? | 3 Yes | 1 No |
Could you explain the difference between func vs action vs predicate?
directcast(123.34,integer) - should it throw an error? Why or why not?
how dot net compiled code will become platform independent?
I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?
What is overriding in c#?
Why is ienumerable used?
Can a static class have a constructor c#?
What is managed or unmanaged code?
What is serialization and deserialization in c# with example?
What is protected internal modifier in C#?
What is anonymous class in c#?
Any exceptions are there which are not caught by any catch blocks? what are they?
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)