示例#1
0
        public override bool Equals(object o)
        {
            var other = o as ProjectingFieldInfo;

            return(other != null &&
                   Projector == other.Projector &&
                   UnderlyingField.Equals(other.UnderlyingField));
        }
示例#2
0
 Cci.ITypeReference Cci.IFieldReference.GetType(EmitContext context)
 {
     return(UnderlyingField.GetType(context));
 }
示例#3
0
 public override int GetHashCode()
 {
     return(Projector.GetHashCode() ^ UnderlyingField.GetHashCode());
 }
示例#4
0
 protected override MetadataConstant GetCompileTimeValue(EmitContext context)
 {
     return(UnderlyingField.GetMetadataConstantValue(context));
 }
示例#5
0
 protected override IEnumerable <CSharpAttributeData> GetCustomAttributesToEmit()
 {
     return(UnderlyingField.GetCustomAttributesToEmit());
 }
 protected override IEnumerable <CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder)
 {
     return(UnderlyingField.GetCustomAttributesToEmit(moduleBuilder));
 }
示例#7
0
 protected override IEnumerable <CSharpAttributeData> GetCustomAttributesToEmit(ModuleCompilationState compilationState)
 {
     return(UnderlyingField.GetCustomAttributesToEmit(compilationState));
 }
示例#8
0
 public override bool Equals([NotNullWhen(true)] object?o)
 {
     return(o is ProjectingFieldInfo other &&
            Projector == other.Projector &&
            UnderlyingField.Equals(other.UnderlyingField));
 }