Method1()
{
int a=0, b=0, c=0;
Monitor.Enter(this)
c = 12;
b = 3;
a = c/b
Moniter.Exit(this)
}
Method1()
{
int a=0, b=0, c=0;
c = 12;
b = 3;
lock(this){
a = c/b
}
}
Choose correct answer.
a. Upon completion, Method1 and Method2 release the lock
b. Upon Comletion, Method1 release the lcok and Method2 not.
c. Upon Completion, Method2 release the lock and Method1
not.
d. Upon Completion, neither Method1 or Method to release
the lock.
In which way a two-dimensional array declared in C#?
What is an abstract class c#?
What are data types with examples?
What is xml comments in c#?
Why do we use public static void main in c#?
Why we use get and set property in c#?
What are abstract classes in c#?
What is the usage of Enumeration in C# Programming and is it good to use or not ?
What is the difference between ienumerable and iqueryable?
Hai, I want to open a new form while the previous form is hiding or closing. I tried this with using MDI.I created one form like ParentForm.placed one button control.when clicked one that it opend new form like ChildForm.When i set the property of ChildForm to Maximize,but the ParentForm button control also appearing on the childform. so plz help me how to hide parentform controls(hide parentform while it is childform opened) thanq..
What are custom attributes in c#?
i want o/p 011242110 in c# code.