public ClrObjectRuntime(XamlRuntimeSettings settings, bool isWriter) { if (settings != null) { _ignoreCanConvert = settings.IgnoreCanConvert; } _isWriter = isWriter; }
internal DynamicMethodRuntime(XamlRuntimeSettings settings, XamlSchemaContext schemaContext, XamlAccessLevel accessLevel) : base(settings, true) { this._schemaContext = schemaContext; this._xamlLoadPermission = new XamlLoadPermission(accessLevel); this._localAssembly = Assembly.Load(accessLevel.AssemblyAccessToAssemblyName); if (accessLevel.PrivateAccessToTypeName != null) { this._localType = this._localAssembly.GetType(accessLevel.PrivateAccessToTypeName, true); } }
internal DynamicMethodRuntime(XamlRuntimeSettings settings, XamlSchemaContext schemaContext, XamlAccessLevel accessLevel) : base(settings, true /*isWriter*/) { Debug.Assert(schemaContext != null); Debug.Assert(accessLevel != null); _schemaContext = schemaContext; _localAssembly = Assembly.Load(accessLevel.AssemblyAccessToAssemblyName); if (accessLevel.PrivateAccessToTypeName != null) { _localType = _localAssembly.GetType(accessLevel.PrivateAccessToTypeName, true /*throwOnError*/); } }
private XamlRuntime CreateRuntime(XamlObjectWriterSettings settings, XamlSchemaContext schemaContext) { XamlRuntime runtime = null; XamlRuntimeSettings runtimeSettings = null; if (settings != null) { runtimeSettings = new XamlRuntimeSettings { IgnoreCanConvert = settings.IgnoreCanConvert }; if (settings.AccessLevel != null) { runtime = new PartialTrustTolerantRuntime(runtimeSettings, settings.AccessLevel, schemaContext); } } if (runtime == null) { runtime = new ClrObjectRuntime(runtimeSettings, true); } runtime.LineInfo = this; return runtime; }
public PartialTrustTolerantRuntime(XamlRuntimeSettings runtimeSettings, XamlAccessLevel accessLevel, XamlSchemaContext schemaContext) { this._transparentRuntime = new ClrObjectRuntime(runtimeSettings, true); this._accessLevel = accessLevel; this._schemaContext = schemaContext; }
public PartialTrustTolerantRuntime(XamlRuntimeSettings runtimeSettings, XamlAccessLevel accessLevel, XamlSchemaContext schemaContext) { _transparentRuntime = new ClrObjectRuntime(runtimeSettings, true /*isWriter*/); _accessLevel = accessLevel; _schemaContext = schemaContext; }