示例#1
0
 public override T GetRuntimeAttribute <T>(TypeModel model)
 {
     return((T)(_runtime ?? (_runtime = IKVMAttributeFactory.Create(attribute))));
 }
示例#2
0
        internal static T[] CreateRuntime <T>(TypeModel model, MemberInfo member, bool inherit)
        {
#if FEAT_IKVM
            return(member.__GetCustomAttributes(model.MapType(typeof(T)), inherit).Select(attr => (T)IKVMAttributeFactory.Create(attr)).ToArray());
#else
            return(member.GetCustomAttributes(typeof(T), inherit).Select(attr => (T)(object)attr).ToArray());
#endif
        }