/////////////////////////////////////////////////////////////////////// private ShellCallbackData( ShellCallbackData callbackData ) : this() { Copy(callbackData, this); }
/////////////////////////////////////////////////////////////////////// #region Internal Static Methods internal static void Copy( ShellCallbackData sourceCallbackData, ShellCallbackData targetCallbackData ) { if ((sourceCallbackData == null) || (targetCallbackData == null)) { return; } targetCallbackData.ArgumentCallback = sourceCallbackData.ArgumentCallback; targetCallbackData.EvaluateScriptCallback = sourceCallbackData.EvaluateScriptCallback; targetCallbackData.EvaluateFileCallback = sourceCallbackData.EvaluateFileCallback; targetCallbackData.EvaluateEncodedFileCallback = sourceCallbackData.EvaluateEncodedFileCallback; targetCallbackData.InteractiveLoopCallback = sourceCallbackData.InteractiveLoopCallback; targetCallbackData.Initialized = sourceCallbackData.Initialized; targetCallbackData.HadArgumentCallback = sourceCallbackData.HadArgumentCallback; targetCallbackData.HadEvaluateScriptCallback = sourceCallbackData.HadEvaluateScriptCallback; targetCallbackData.HadEvaluateFileCallback = sourceCallbackData.HadEvaluateFileCallback; targetCallbackData.HadEvaluateEncodedFileCallback = sourceCallbackData.HadEvaluateEncodedFileCallback; targetCallbackData.HadInteractiveLoopCallback = sourceCallbackData.HadInteractiveLoopCallback; }
/////////////////////////////////////////////////////////////////////// internal static ShellCallbackData Create( ShellCallbackData callbackData ) { return(new ShellCallbackData(callbackData)); }