public override T GetRuntimeAttribute <T>(TypeModel model) { return((T)(_runtime ?? (_runtime = IKVMAttributeFactory.Create(attribute)))); }
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 }