System.Reflection.Emit.PropertyOnTypeBuilderInst.GetAccessors C# (CSharp) Метод

GetAccessors() публичный Метод

public GetAccessors ( bool nonPublic ) : System.Reflection.MethodInfo[]
nonPublic bool
Результат System.Reflection.MethodInfo[]
		public override MethodInfo[] GetAccessors (bool nonPublic)
		{
			MethodInfo getter = GetGetMethod (nonPublic);
			MethodInfo setter = GetSetMethod (nonPublic);

			int methods = 0;
			if (getter != null)
				++methods;
			if (setter != null)
				++methods;

			MethodInfo[] res = new MethodInfo [methods];

			methods = 0;
			if (getter != null)
				res [methods++] = getter;
			if (setter != null)
				res [methods] = setter;

			return res;
		}