Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public SwitchParameter AutoSize
get
{
if (_autosize.HasValue)
return _autosize.Value;
return _autosize.GetValueOrDefault();
return false;
}

Expand All @@ -70,7 +70,7 @@ public int Column
get
{
if (_column.HasValue)
return _column.Value;
return _column;
return -1;
}

Expand Down Expand Up @@ -106,7 +106,7 @@ internal override FormattingCommandLineParameters GetCommandLineParameters()
// we cannot specify -column and -autosize, they are mutually exclusive
if (_autosize.HasValue && _column.HasValue)
{
if (_autosize.Value)
if (_autosize)
{
// the user specified -autosize:true AND a column number
string msg = StringUtil.Format(FormatAndOut_format_xxx.CannotSpecifyAutosizeAndColumnsError);
Expand All @@ -132,17 +132,16 @@ internal override FormattingCommandLineParameters GetCommandLineParameters()
parameters.expansion = ProcessExpandParameter();

if (_autosize.HasValue)
parameters.autosize = _autosize.Value;
parameters.autosize = _autosize;

WideSpecificParameters wideSpecific = new WideSpecificParameters();
parameters.shapeParameters = wideSpecific;
if (_column.HasValue)
{
wideSpecific.columns = _column.Value;
wideSpecific.columns = _column;
}

return parameters;
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ protected override void BeginProcessing()
{
if (SetSeed.HasValue)
{
Generator = new PolymorphicRandomNumberGenerator(SetSeed.Value);
Generator = new PolymorphicRandomNumberGenerator(SetSeed);
}

if (EffectiveParameterSet == MyParameterSet.RandomNumber)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ internal static OrderByPropertyComparer CreateComparer(List<OrderByPropertyEntry
{
if (ascendingOverrides != null && ascendingOverrides[k].HasValue)
{
ascending[k] = ascendingOverrides[k].Value;
ascending[k] = ascendingOverrides[k];
}
else
{
Expand Down