MonoField MonoReflectionField FieldInfo

mono\mcs\class\corlib\System.Reflection\MonoField.cs

[StructLayout (LayoutKind.Sequential)]

internal class MonoField : RtFieldInfo {
internal IntPtr klass;
internal RuntimeFieldHandle fhandle;
string name;
Type type;
FieldAttributes attrs;

public override FieldAttributes Attributes {
get {
return attrs;
}
}
public override RuntimeFieldHandle FieldHandle {
get {
return fhandle;
}
}


[MethodImplAttribute(MethodImplOptions.InternalCall)]
extern Type ResolveType ();


public override Type FieldType { 
get {
if (type == null)
type = ResolveType ();
return type;
}
}


[MethodImplAttribute(MethodImplOptions.InternalCall)]
private extern Type GetParentType (bool declaring);


public override Type ReflectedType {
get {
return GetParentType (false);
}
}
public override Type DeclaringType {
get {
return GetParentType (true);
}
}
public override string Name {
get {
return name;
}
}
阅读更多
个人分类: C# mono
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

MonoField MonoReflectionField FieldInfo

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭