Exemple #1
0
        public static DomAttribute CreateFromClrResource(IServiceModel serviceModel, IAttributeInfo attributeInfo, object clrResource)
        {
            Contract.Requires(serviceModel != null);
            Contract.Requires(attributeInfo != null);
            Contract.Requires(clrResource != null);

            var clrAttribute = attributeInfo.GetClrProperty(clrResource);

            return(CreateFromClrAttribute(serviceModel, attributeInfo, clrAttribute));
        }