public void CheckEntryPoint(Method node) { if ((node.get_IsStatic() && node.get_IsPublic()) && ((node.get_Name() == "Main") && (this.GetType(node.get_ReturnType()) == this.get_TypeSystemServices().VoidType))) { ContextAnnotations.SetEntryPoint(base._context, node); } }
public override void OnMethod(Method node) { if (!node.get_IsPrivate()) { this.SetPublicByDefault(node); if (!node.get_IsFinal() && !node.get_IsStatic()) { node.set_Modifiers(node.get_Modifiers() | 0x80); } } }