//----------------------------------------------------------------------------------------------------------------------------------------------------- public virtual void SetAttributes(HappilAttributes attributes) { if (attributes != null) { foreach (var attribute in attributes.GetAttributes()) { SetCustomAttribute(attribute); } } }
//----------------------------------------------------------------------------------------------------------------------------------------------------- internal void SetAttributes(HappilAttributes attributes) { if (attributes != null) { foreach (var attribute in attributes.GetAttributes()) { m_FieldBuilder.SetCustomAttribute(attribute); } } }
//------------------------------------------------------------------------------------------------------------------------------------------------- internal void SetAttributes(HappilAttributes attributes) { if (attributes != null) { foreach (var attribute in attributes.GetAttributes()) { OwnerProperty.PropertyBuilder.SetCustomAttribute(attribute); } } }
//----------------------------------------------------------------------------------------------------------------------------------------------------- public override void SetAttributes(HappilAttributes attributes) { if (attributes != null) { foreach (var attribute in attributes.GetAttributes()) { m_ConstructorBuilder.SetCustomAttribute(attribute); } } }
//----------------------------------------------------------------------------------------------------------------------------------------------------- public void DefineReturnAttributes() { if (m_ReturnAttributes != null && m_MethodBuilder != null && m_Declaration.ReturnParameter != null) { var returnParameter = m_MethodBuilder.DefineParameter(0, m_Declaration.ReturnParameter.Attributes, m_Declaration.ReturnParameter.Name); foreach (var attribute in m_ReturnAttributes.GetAttributes()) { returnParameter.SetCustomAttribute(attribute); } } }