Esempio n. 1
0
        public static void LoadXml(Cmdlet cmdlet)
        {
            var updateFormatData = new UpdateFormatDataCommand();

            var destinationContextInfo = updateFormatData.GetInternalPropertyInfo("Context");
            var sourceContext          = cmdlet.GetInternalProperty("Context");

            destinationContextInfo.SetValue(updateFormatData, sourceContext);

            updateFormatData.AppendPath = Formats.ToArray();

            var processRecord = updateFormatData.GetInternalMethod("ProcessRecord");

            processRecord.Invoke(updateFormatData, null);
        }