Inheritance: IRuntimeMetadataAccess
Ejemplo n.º 1
0
 private static string CustomAttributeConstructorFormattedArgumentsFor(CustomAttribute attribute, DefaultRuntimeMetadataAccess metadataAccess)
 {
Ejemplo n.º 2
0
        public static IRuntimeMetadataAccess GetDefaultRuntimeMetadataAccess(MethodReference method, MetadataUsage metadataUsage, MethodUsage methodUsage)
        {
            DefaultRuntimeMetadataAccess defaultRuntimeMetadataAccess = new DefaultRuntimeMetadataAccess(method, metadataUsage, methodUsage);

            return(((method == null) || !GenericSharingAnalysis.IsSharedMethod(method)) ? ((IRuntimeMetadataAccess)defaultRuntimeMetadataAccess) : ((IRuntimeMetadataAccess) new SharedRuntimeMetadataAccess(method, defaultRuntimeMetadataAccess)));
        }
 public SharedRuntimeMetadataAccess(MethodReference methodReference, DefaultRuntimeMetadataAccess defaultRuntimeMetadataAccess)
 {
     this._methodReference = methodReference;
     this._typeResolver    = new Unity.IL2CPP.ILPreProcessor.TypeResolver(methodReference.DeclaringType as GenericInstanceType, methodReference as GenericInstanceMethod);
     this._default         = defaultRuntimeMetadataAccess;
 }