Write an expression which satisfies the following statements:
(i) Creates an object of type q
(ii) If m is null, returns n, otherwise returns m
(iii) If x and y are string types, it concatenates x and y
Answer / sam
1)q objQ = new q();
2)string result = m??n;
3) if((typeof(string) == x.GetType()) && (typeof(string) == y.GetType() )
{
String.Concat(x,y);
}
| Is This Answer Correct ? | 1 Yes | 0 No |
What is append in c#?
Explain about ODP.net
Can a method return multiple values in c#?
What is concrete class in c#?
how to use caching in our program. why we use it give one example in code
How to force my .net app to run as administrator on windows 7?
What is function and method in c#?
Why is it not a good idea to use empty destructors?
What is the meaning of MSIL?
What are the main reasons to use c# language?
destructor, Dispose, Finalize - How they relate to each other
Why would you use untrusted verificaion?
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)