コード例 #1
0
        protected override sealed TMember CreateValue(AttributeValueProviderContext <TMember, TAttribute> context)
        {
            if (context.Attributes.Count == 0) //no attributes found - go to previous provider.
            {
                return(context.GetPreviousValue());
            }

            Debug.Assert(context.Attribute != null, "The attribute was null, but should never be null");
            return(CreateAttributeBasedValue(context));
        }
コード例 #2
0
 protected abstract TMember CreateAttributeBasedValue(AttributeValueProviderContext <TMember, TAttribute> context);