AssetBundleGraph.ModifierUtility.HasValidCustomModifierAttribute C# (CSharp) 메소드

HasValidCustomModifierAttribute() 공개 정적인 메소드

public static HasValidCustomModifierAttribute ( Type t ) : bool
t System.Type
리턴 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;
        }