//------------------------------------------------------------------------------------------------------------------------------------------------- public MethodDecorationBuilder OnAdd() { if (m_OnAdd == null) { m_OnAdd = new DecoratingMethodWriter(m_OwnerEvent.AddMethod).DecorationBuilder; } return(m_OnAdd); }
//------------------------------------------------------------------------------------------------------------------------------------------------- public MethodDecorationBuilder OnRemove() { if (m_OnRemove == null) { m_OnRemove = new DecoratingMethodWriter(m_OwnerEvent.RemoveMethod).DecorationBuilder; } return(m_OnRemove); }
//------------------------------------------------------------------------------------------------------------------------------------------------- public MethodDecorationBuilder Setter() { if (m_Setter == null) { var setterMethod = m_OwnerProperty.SetterMethod; m_Setter = new DecoratingMethodWriter(setterMethod).DecorationBuilder; } return(m_Setter); }
//------------------------------------------------------------------------------------------------------------------------------------------------- internal PropertyDecorationBuilder(PropertyMember ownerProperty) { m_OwnerProperty = ownerProperty; m_Getter = null; m_Setter = null; }
//------------------------------------------------------------------------------------------------------------------------------------------------- internal EventDecorationBuilder(EventMember ownerEvent) { m_OwnerEvent = ownerEvent; m_OnAdd = null; m_OnRemove = null; }