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 |
List some Advantages of switch-case over if else?
What is sqlconnection in c#?
Explain the importance and use of each, version, culture and publickeytoken for an assembly.
What are namespaces, and how they are used?
explain DIFFERENCE BETWEEN CLASS AND MODULE?
Hello.. This is kali prasad. i wish to learn C#. kindly guide me in making me expert in c#.
what optimizations does the c# compiler perform when you use the /optimize+ compiler option?
What is lazy in c#?
What is a decimal in c#?
What is escape character in c#?
Can you override private virtual methods?
11 Answers AROBS Transilvania Software, IBM, Mind Tree, Revalsys,
What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?
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)