Skip to content

Commit

Permalink
Is{Instance|Static}Constructor shouldn't check IsSpecialName
Browse files Browse the repository at this point in the history
This matches the IsMdInstanceInitializer() and IsMdClassConstructor() macros in CorHdr.h
  • Loading branch information
wtfsck committed May 11, 2014
1 parent 0f274c6 commit 00c91a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DotNet/MethodDef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -845,14 +845,14 @@ public bool IsNoOptimization {
/// <c>true</c> if this is the static type constructor
/// </summary>
public bool IsStaticConstructor {
get { return IsRuntimeSpecialName && IsSpecialName && UTF8String.Equals(Name, StaticConstructorName); }
get { return IsRuntimeSpecialName && UTF8String.Equals(Name, StaticConstructorName); }
}

/// <summary>
/// <c>true</c> if this is an instance constructor
/// </summary>
public bool IsInstanceConstructor {
get { return IsRuntimeSpecialName && IsSpecialName && UTF8String.Equals(Name, InstanceConstructorName); }
get { return IsRuntimeSpecialName && UTF8String.Equals(Name, InstanceConstructorName); }
}

/// <summary>
Expand Down

0 comments on commit 00c91a2

Please sign in to comment.