/// <summary> /// Retrieves set of decorators for type's member /// </summary> /// <param name="t">Member's parameter</param> /// <returns>Set of decorators</returns> public IEnumerable <TsDecoratorAttribute> DecoratorsFor(MemberInfo t) { var inlineDecorators = t.GetCustomAttributes <TsDecoratorAttribute>(); var fluentDecorators = DecoratorsForMembers.ContainsKey(t) ? DecoratorsForMembers[t] : null; if (fluentDecorators == null) { return(inlineDecorators); } return(inlineDecorators.Union(fluentDecorators)); }
internal List <TsDecoratorAttribute> DecoratorsListFor(MemberInfo t) { return(DecoratorsForMembers.GetOrCreate(t)); }