internal static OutGridViewCommand.GridHeader ConstructGridHeader(PSObject input, OutGridViewCommand parentCmd) { if (!DefaultScalarTypes.IsTypeInList(input.TypeNames) && !OutOfBandFormatViewManager.IsPropertyLessObject(input)) { return(new OutGridViewCommand.NonscalarTypeHeader(parentCmd, input)); } return(new OutGridViewCommand.ScalarTypeHeader(parentCmd, input)); }
internal static GridHeader ConstructGridHeader(PSObject input, OutGridViewCommand parentCmd) { if (DefaultScalarTypes.IsTypeInList(input.TypeNames) || !OutOfBandFormatViewManager.HasNonRemotingProperties(input)) { return(new ScalarTypeHeader(parentCmd, input)); } return(new NonscalarTypeHeader(parentCmd, input)); }