IKVM.Internal.DynamicPropertyFieldWrapper.DoLink C# (CSharp) Method

DoLink() private method

private DoLink ( TypeBuilder tb ) : void
tb TypeBuilder
return void
        internal void DoLink(TypeBuilder tb)
        {
            if(getter != null)
            {
                getter.Link();
            }
            if(setter != null)
            {
                setter.Link();
            }
            pb = tb.DefineProperty(this.Name, PropertyAttributes.None, this.FieldTypeWrapper.TypeAsSignatureType, Type.EmptyTypes);
            if(getter != null)
            {
                pb.SetGetMethod((MethodBuilder)getter.GetMethod());
            }
            if(setter != null)
            {
                pb.SetSetMethod((MethodBuilder)setter.GetMethod());
            }
            #if STATIC_COMPILER
            AttributeHelper.SetModifiers(pb, this.Modifiers, this.IsInternal);
            #endif
        }