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)); }
protected abstract TMember CreateAttributeBasedValue(AttributeValueProviderContext <TMember, TAttribute> context);