Beispiel #1
0
 private void EnsureElevatedRuntime()
 {
     if (this._elevatedRuntime == null)
     {
         this._elevatedRuntime          = new DynamicMethodRuntime(this._transparentRuntime.GetSettings(), this._schemaContext, this._accessLevel);
         this._elevatedRuntime.LineInfo = this.LineInfo;
     }
 }
Beispiel #2
0
 private void EnsureElevatedRuntime()
 {
     if (_elevatedRuntime == null)
     {
         _elevatedRuntime = new DynamicMethodRuntime(
             _transparentRuntime.GetSettings(), _schemaContext, _accessLevel);
         _elevatedRuntime.LineInfo = LineInfo;
     }
 }
Beispiel #3
0
 public PartialTrustTolerantRuntime(XamlRuntimeSettings runtimeSettings, XamlAccessLevel accessLevel, XamlSchemaContext schemaContext)
 {
     this._transparentRuntime = new ClrObjectRuntime(runtimeSettings, true);
     this._accessLevel        = accessLevel;
     this._schemaContext      = schemaContext;
 }
Beispiel #4
0
 public PartialTrustTolerantRuntime(XamlRuntimeSettings runtimeSettings, XamlAccessLevel accessLevel, XamlSchemaContext schemaContext)
 {
     _transparentRuntime = new ClrObjectRuntime(runtimeSettings, true /*isWriter*/);
     _accessLevel        = accessLevel;
     _schemaContext      = schemaContext;
 }