32. To generate a simple notification for an object in runtime, the programming construct to be used for implementing this idea?
33. Which of the following is a valid statement about generic procedures in C#.NET are?
34. What is meant by the term generics?
35. In the following C# code, which of the following statement is not correct?
public class MyContainer<T> where T: class, IComparable
{
/* insert code here */
}
public class MyContainer<T> where T: class, IComparable
{
/* insert code here */
}36. Which of the following statements is correct about a delegate?
37. What will be the output of the following C# code snippet?
{
delegate void A(ref string str);
class sample
{
public static void fun( ref string a)
{
a = a.Substring( 7, a.Length - 7);
}
}
class Program
{
static void Main(string[] args)
{
A str1;
string str = "Test Your C#.net skills";
str1 = sample.fun;
str1(ref str);
Console.WriteLine(str);
}
}
}
{
delegate void A(ref string str);
class sample
{
public static void fun( ref string a)
{
a = a.Substring( 7, a.Length - 7);
}
}
class Program
{
static void Main(string[] args)
{
A str1;
string str = "Test Your C#.net skills";
str1 = sample.fun;
str1(ref str);
Console.WriteLine(str);
}
}
}