34 internal abstract class MethodBase : MapXmlElement
42 public static void Load(MethodBase method, XElement element)
44 Load((MapXmlElement)method, element);
45 method.MethodAttributes = MapXmlSerializer.ReadMethodAttributes((
string)element.Attribute(
"attributes"));
46 method.Body = element.Elements(MapXmlSerializer.NS +
"body").Select(InstructionList.Read).FirstOrDefault();
47 method.Throws = element.Elements(MapXmlSerializer.NS +
"throws").Select(MapXml.Throws.Read).ToArray();
48 method.Attributes = element.Elements(MapXmlSerializer.NS +
"attribute").Select(Attribute.Read).ToArray();
49 method.ReplaceMethodCalls = element.Elements(MapXmlSerializer.NS +
"replace-method-call").Select(ReplaceMethodCall.Read).ToArray();
50 method.Prologue = element.Elements(MapXmlSerializer.NS +
"prologue").Select(InstructionList.Read).FirstOrDefault();
53 public MethodAttributes MethodAttributes {
get;
set; }
55 public InstructionList Body {
get;
set; }
57 public Throws[] Throws {
get;
set; }
59 public Attribute[] Attributes {
get;
set; }
61 public ReplaceMethodCall[] ReplaceMethodCalls {
get;
set; }
63 public InstructionList Prologue {
get;
set; }
65 internal abstract MethodKey ToMethodKey(
string className);
record struct MethodKey(string ClassName, string MethodName, string MethodSig)