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 |
How to declares a two-dimensional array in C#?
Does c# support properties of array types?
What are the collections in c#?
Will finally block get executed if the exception had not occurred?
Explain About DTS package
What is a console file?
What is the difference between C# 3.5 and C# 4.0?
When a new instance of a type is created, what is the type of method implicitly called?
What is the use of getcommandlineargs() method in c#.net?
Is it possible to add two 50 digit numbers in .net? If yes what is the code snippet?
2 Answers Cognizant, W3 Solutions, Zefer,
how can we pass parameters to a user control using delegates ?
Can struct inherit from class c#?