Skip to content

Instantly share code, notes, and snippets.

@robashton
Created June 17, 2011 09:56
Show Gist options
  • Select an option

  • Save robashton/1031154 to your computer and use it in GitHub Desktop.

Select an option

Save robashton/1031154 to your computer and use it in GitHub Desktop.
Example
System.Windows.Application.prototype._ctor$1 = function (nativeTypeIndex) {
System.Object.prototype._ctor.call(this);
System.Windows.Application._current = this;
var intPtr = System.IntPtr.Zero;
intPtr = $asm02.MS.Internal.XcpImports.CreateObjectByTypeIndex(nativeTypeIndex);
this.m_nativePtr = new $asm02.MS.Internal.NativeObjectSafeHandle();
this.m_nativePtr.NativeObject = intPtr;
$asm02.MS.Internal.ManagedPeerTable.Add$0(intPtr, this);
this._coreTypeEventHelper = new $asm02.MS.Internal.CoreTypeEventHelper();
var type = (JSIL.GetType(this));
var isCustomType = 0;
if (!$asm02.MS.Internal.TypeProxy.IsCoreType(type)) {
isCustomType = 1;
}
$asm02.MS.Internal.XcpImports.NotifyHasManagedPeer$0(intPtr, 11, isCustomType);
this._hasElevatedPermissions = $asm02.MS.Internal.XcpImports.Application_GetHasElevatedPermissions();
var arg_6E_0 = System.Windows.Deployment.Current;
this.add_Starting(JSIL.Delegate.New("System.Windows.StartupEventHandler", this, System.Windows.Application.prototype.Application_Starting));
this.add_Started(JSIL.Delegate.New("System.EventHandler", this, System.Windows.Application.prototype.Application_Started));
this.add_Exiting(JSIL.Delegate.New("System.EventHandler", this, System.Windows.Application.prototype.Application_Exiting));
this.add_Exited(JSIL.Delegate.New("System.EventHandler", this, System.Windows.Application.prototype.Application_Exited));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment