예제 #1
0
 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));
 }
예제 #2
0
            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));
            }