public AMF0ReflectionOptimizer(Type type, AMFReader reader, object instance) { _createInstanceMethod = CreateCreateInstanceMethod(type); #if !(MONO) && !(NET_2_0) && !(NET_3_5) && !(SILVERLIGHT) _ps = new PermissionSet(PermissionState.None); _ps.AddPermission(new ReflectionPermission(ReflectionPermissionFlag.MemberAccess)); #endif _readDataMethod = CreateReadDataMethod(type, reader, instance); }
public AMF0ReflectionOptimizer(Type type, AMFReader reader, object instance) { _createInstanceMethod = CreateCreateInstanceMethod(type); _readDataMethod = CreateReadDataMethod(type, reader, instance); #if !(MONO) && !(NET_2_0) && !(NET_3_5) && !(SILVERLIGHT) _ps = new PermissionSet(PermissionState.None); _ps.AddPermission(new ReflectionPermission(ReflectionPermissionFlag.MemberAccess)); #endif }
public AMF3ReflectionOptimizer(Type type, ClassDefinition classDefinition, AMFReader reader, object instance) { _classDefinition = classDefinition; _createInstanceMethod = CreateCreateInstanceMethod(type); _readDataMethod = CreateReadDataMethod(type, reader, instance); }
public AMF0ReflectionOptimizer(Type type, AMFReader reader, object instance) { this._createInstanceMethod = this.CreateCreateInstanceMethod(type); this._readDataMethod = this.CreateReadDataMethod(type, reader, instance); }