//
//
//
//
// $Revision$
//
using System;
using System.Collections.Generic;
using Debugger.Wrappers.CorDebug;
using Debugger.Wrappers.MetaData;
namespace Debugger.MetaData
{
///
/// Provides information about a field of some class.
///
public class FieldInfo: MemberInfo
{
FieldProps fieldProps;
/// Gets a value indicating whether this field is literal field
public bool IsLiteral {
get {
return fieldProps.IsLiteral;
}
}
/// Gets a value indicating whether this member has the private access modifier
public override bool IsPrivate {
get { return fieldProps.IsPrivate; }
}
/// Gets a value indicating whether this member has the internal access modifier
public override bool IsInternal {
get { return fieldProps.IsInternal; }
}
/// Gets a value indicating whether this member has the protected access modifier
public override bool IsProtected {
get { return fieldProps.IsProtected; }
}
/// Gets a value indicating whether this member has the public access modifier
public override bool IsPublic {
get { return fieldProps.IsPublic; }
}
/// Gets a value indicating whether this field is static
public override bool IsStatic {
get {
return fieldProps.IsStatic;
}
}
/// Gets the metadata token associated with this field
[Debugger.Tests.Ignore]
public override uint MetadataToken {
get {
return fieldProps.Token;
}
}
/// Gets the name of this field
public override string Name {
get {
return fieldProps.Name;
}
}
internal FieldInfo(DebugType declaringType, FieldProps fieldProps):base (declaringType)
{
this.fieldProps = fieldProps;
}
}
}