PowerArgs.Cli.ContextAssistResult.CreateCustomResult C# (CSharp) Method

CreateCustomResult() public static method

Creates a custom result that manually replaces the entire parent reader's buffer.
public static CreateCustomResult ( List newBuffer, int consoleRefreshLeftOffset ) : ContextAssistResult
newBuffer List the new buffer to apply to the parent reader
consoleRefreshLeftOffset int The relative offset to apply to the current cursor position
return ContextAssistResult
        public static ContextAssistResult CreateCustomResult(List<ConsoleCharacter> newBuffer, int consoleRefreshLeftOffset)
        {
            return new ContextAssistResult() { NewBuffer = newBuffer, StatusCode = ContextAssistResultStatusCode.Success, ConsoleRefreshLeftOffset = consoleRefreshLeftOffset };
        }