32 lines
761 B
C#
32 lines
761 B
C#
using System;
|
|
using System.Reflection;
|
|
|
|
namespace Google.Protobuf.Compatibility
|
|
{
|
|
// Token: 0x0200006E RID: 110
|
|
internal static class PropertyInfoExtensions
|
|
{
|
|
// Token: 0x06000609 RID: 1545 RVA: 0x00015184 File Offset: 0x00013384
|
|
internal static MethodInfo GetGetMethod(this PropertyInfo target)
|
|
{
|
|
MethodInfo getMethod = target.GetGetMethod();
|
|
if (getMethod == null || !getMethod.IsPublic)
|
|
{
|
|
return null;
|
|
}
|
|
return getMethod;
|
|
}
|
|
|
|
// Token: 0x0600060A RID: 1546 RVA: 0x000151A8 File Offset: 0x000133A8
|
|
internal static MethodInfo GetSetMethod(this PropertyInfo target)
|
|
{
|
|
MethodInfo setMethod = target.GetSetMethod();
|
|
if (setMethod == null || !setMethod.IsPublic)
|
|
{
|
|
return null;
|
|
}
|
|
return setMethod;
|
|
}
|
|
}
|
|
}
|