There is no difference. The property GetMethod
calls GetGetMethod
to get the getter. 1 Here's what ILSpy tells me about the property implementation:
// System.Reflection.PropertyInfo
[__DynamicallyInvokable]
public virtual MethodInfo GetMethod
{
[__DynamicallyInvokable, TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
get
{
return this.GetGetMethod(true);
}
}
The property GetMethod
is simply easier to use, because it does not relate on an parameter.
1 Never thought I could use the word get so many times in just one sentence!