Blog.Common.Web.Extensions.ImportPropertySelectionBehavior.SelectProperty C# (CSharp) Method

SelectProperty() public method

public SelectProperty ( Type type, PropertyInfo prop ) : bool
type System.Type
prop System.Reflection.PropertyInfo
return bool
        public bool SelectProperty(Type type, PropertyInfo prop)
        {
            return prop.GetCustomAttributes(typeof(ImportAttribute)).Any();
        }
    }
ImportPropertySelectionBehavior