Note, however, that work for documenting them is needed. Currently, however, some of them are a little documented, and other can be just be seen (which is a good things, since I won't need to look the namesof the functions).
A screenshot below:
public delegate void MethodHandler (string msg);
class A {}
class B : A {}
delegate A MethodHandler () { // Do something }
class A {}
class B : A {}
delegate void MethodHandler (B b);
public int Count {
get {
// count is a private int field
return count;
}
protected set {
// Only protected members will be able to modify Count
count = value;
}
}
public int Count {
get {
}
//
// Error: public is not more restrictive than public
//
public set {
}
}
public int Count {
//
// Error: Property must have both set and get accessors
// for applying access modifiers
//
protected get {
}
}
using System;
public class Test {
string message;
public Test (string message)
{
this.message = message;
}
public string Message {
get {
return message;
}
protected set {
message = value;
}
}
static void Main ()
{
Test t = new Test ("Mono");
// Good, it is possible to access get accessor
Console.WriteLine (t.Message);
// Bad, mcs will complain about the access
// t.Message = "Hey";
}
}