4 using System.Collections.Generic;
6 using System.Reflection;
8 namespace SiliconStudio.Core.Reflection
12 public static T GetCustomAttributeEx<T>(
this Assembly assembly) where T : Attribute
14 return (T)GetCustomAttributeEx(assembly, typeof(T));
19 #if SILICONSTUDIO_PLATFORM_MONO_MOBILE
20 return Attribute.GetCustomAttribute(assembly, attributeType);
22 return assembly.GetCustomAttribute(attributeType);
28 #if SILICONSTUDIO_PLATFORM_MONO_MOBILE
29 return Attribute.GetCustomAttributes(assembly, attributeType);
31 return assembly.GetCustomAttributes(attributeType);
35 public static IEnumerable<T> GetCustomAttributesEx<T>(
this Assembly assembly) where T : Attribute
37 return GetCustomAttributesEx(assembly, typeof(T)).Cast<T>();
static Attribute GetCustomAttributeEx(this Assembly assembly, Type attributeType)
static IEnumerable< Attribute > GetCustomAttributesEx(this Assembly assembly, Type attributeType)