This is called a lot from reflection-dataflow-related places.
}
}
+ public override bool IsStaticConstructor
+ {
+ get
+ {
+ return false;
+ }
+ }
+
public override MethodDesc GetMethodDefinition()
{
return _methodDef;
public override Instantiation Instantiation => _wrappedMethod.Instantiation;
public override bool IsDefaultConstructor => _wrappedMethod.IsDefaultConstructor;
+ public override bool IsStaticConstructor => _wrappedMethod.IsStaticConstructor;
public override string Name => _wrappedMethod.Name;
/// <summary>
/// Gets a value indicating whether this method is a static constructor.
/// </summary>
- public bool IsStaticConstructor
+ public virtual bool IsStaticConstructor
{
get
{
}
}
+ public override bool IsStaticConstructor
+ {
+ get
+ {
+ return _typicalMethodDef.IsStaticConstructor;
+ }
+ }
+
public override string Name
{
get
}
}
+ public override bool IsStaticConstructor
+ {
+ get
+ {
+ return Attributes.IsRuntimeSpecialName() && Name == ".cctor";
+ }
+ }
+
public MethodAttributes Attributes
{
get