示例#1
0
        protected override PropertyBuilder ExecuteBuild()
        {
            Field = new ProxyFieldGnerator($"_{PropertyName}", PropertyType, DeclaringMember);
            Field.Build();

            return(base.ExecuteBuild());
        }
示例#2
0
 protected override void GeneratingMethodBody(ILGenerator ilGenerator)
 {
     ilGenerator.EmitThis();
     ilGenerator.Emit(OpCodes.Ldfld, field.Build());
     ilGenerator.Emit(OpCodes.Ret);
 }