IKVM.Reflection.Type.__GetDeclaredFields C# (CSharp) Метод

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

public __GetDeclaredFields ( ) : FieldInfo[]
Результат FieldInfo[]
        public virtual FieldInfo[] __GetDeclaredFields()
        {
            return Empty<FieldInfo>.Array;
        }

Usage Example

		private static FieldInfo GetField(Module context, Type type, string name, Type fieldType)
		{
			Type org = type;
			for (; type != null && !type.__IsMissing; type = type.BaseType)
			{
				foreach (FieldInfo field in type.__GetDeclaredFields())
				{
					if (field.IsPublic && !field.IsStatic && field.Name == name)
					{
						return field;
					}
				}
			}
			// if the field is missing, we stick the missing field on the first missing base type
			if (type == null)
			{
				type = org;
			}
			FieldSignature sig = FieldSignature.Create(fieldType, new CustomModifiers());
			return type.FindField(name, sig)
				?? type.Module.universe.GetMissingFieldOrThrow(context, type, name, sig);
		}
All Usage Examples Of IKVM.Reflection.Type::__GetDeclaredFields