.Net 4.5 has PropertyInfo.GetMethod as a property on PropertyInfo
class. Is it doing anything different from PropertyInfo.GetGetMethod
method? The documentation page is virtually blank. The only difference I can find is GetGetMethod
by default returns only public getter while GetMethod
returns even non-public getter (the same is achieved by GetGetMethod(true)
).
Similarly there is GetSetMethod
method and SetMethod
property in .NET 4.5. Why was it introduced in .NET?