private static void GetMethodAttributes(Type type) { _memberInfos = type.GetMethods(BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.NonPublic); foreach (var t in _memberInfos) { _attribute = (DefectTrackAttribute)Attribute.GetCustomAttribute(t, typeof(DefectTrackAttribute)); if (_attribute is null) { Debug.Log("Nothing Found : " + t); } else { Debug.Log($"Found this Info on : {t.Name} :-" + $"{_attribute.DefectID} : " + $"{_attribute.ModificationDate} : " + $"{_attribute.DeveloperID} : " + $"{_attribute.Version} : " + $"{_attribute.FixComment} : " + $"{_attribute.Origin}"); } } }
private static void GetClassAttribute(Type type) { _attribute = (DefectTrackAttribute)Attribute.GetCustomAttribute(type, typeof(DefectTrackAttribute)); if (_attribute is null) { Debug.Log("Nothing Found"); } else { Debug.Log($"Found this Info : {_attribute.DefectID} : " + $"{_attribute.ModificationDate} : " + $"{_attribute.DeveloperID} : " + $"{_attribute.Version} : " + $"{_attribute.FixComment} : " + $"{_attribute.Origin}"); } }