AssetBundleGraph.ModifierUtility.HasValidCustomModifierAttribute C# (CSharp) Method

HasValidCustomModifierAttribute() public static method

public static HasValidCustomModifierAttribute ( Type t ) : bool
t System.Type
return bool
        public static bool HasValidCustomModifierAttribute(Type t)
        {
            CustomModifier attr =
                t.GetCustomAttributes(typeof(CustomModifier), false).FirstOrDefault() as CustomModifier;

            if(attr != null) {
                return !string.IsNullOrEmpty(attr.Name) && attr.For != null;
            }
            return false;
        }