Пример #1
0
        ///////////////////////////////////////////////////////////////////////

        private ShellCallbackData(
            ShellCallbackData callbackData
            )
            : this()
        {
            Copy(callbackData, this);
        }
Пример #2
0
        ///////////////////////////////////////////////////////////////////////

        #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;
        }
Пример #3
0
        ///////////////////////////////////////////////////////////////////////

        internal static ShellCallbackData Create(
            ShellCallbackData callbackData
            )
        {
            return(new ShellCallbackData(callbackData));
        }