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);
		}
Beispiel #2
0
        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
        }
Beispiel #3
0
 public AMF3ReflectionOptimizer(Type type, ClassDefinition classDefinition, AMFReader reader, object instance)
 {
     _classDefinition      = classDefinition;
     _createInstanceMethod = CreateCreateInstanceMethod(type);
     _readDataMethod       = CreateReadDataMethod(type, reader, instance);
 }
Beispiel #4
0
 public AMF0ReflectionOptimizer(Type type, AMFReader reader, object instance)
 {
     this._createInstanceMethod = this.CreateCreateInstanceMethod(type);
     this._readDataMethod       = this.CreateReadDataMethod(type, reader, instance);
 }