NServiceBus.ConcreteProxyCreator.AddCustomAttributeToProperty C# (CSharp) Method

AddCustomAttributeToProperty() public method

Given a custom attribute and property builder, adds an instance of custom attribute to the property builder
public AddCustomAttributeToProperty ( object customAttribute, PropertyBuilder propBuilder ) : void
customAttribute object
propBuilder System.Reflection.Emit.PropertyBuilder
return void
        void AddCustomAttributeToProperty(object customAttribute, PropertyBuilder propBuilder)
        {
            var customAttributeBuilder = BuildCustomAttribute(customAttribute);
            if (customAttributeBuilder != null)
            {
                propBuilder.SetCustomAttribute(customAttributeBuilder);
            }
        }