25 references to ToolMode
dotnet-svcutil.xmlserializer (25)
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (3)
110
ToolMode
? mode = _options.GetToolMode();
120
private bool LoadFile(FileInfo fileInfo,
ToolMode
? mode)
122
if (mode ==
ToolMode
.XmlSerializerGeneration)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (21)
18
private
ToolMode
? _defaultMode;
19
private
ToolMode
_validModes =
ToolMode
.Any;
73
internal void SetAllowedModes(
ToolMode
newDefaultMode,
ToolMode
validModes, string option, string value)
75
Tool.Assert(validModes !=
ToolMode
.None, "validModes should never be set to None!");
76
Tool.Assert(newDefaultMode !=
ToolMode
.None, "newDefaultMode should never be set to None!");
77
Tool.Assert((validModes & newDefaultMode) !=
ToolMode
.None, "newDefaultMode must be a validMode!");
82
if (_validModes ==
ToolMode
.None)
86
bool currentDefaultIsValid = (_defaultMode.HasValue && (_defaultMode & _validModes) !=
ToolMode
.None);
87
bool newDefaultIsValid = (newDefaultMode & _validModes) !=
ToolMode
.None;
104
internal
ToolMode
? GetToolMode()
116
private static bool IsSingleBit(
ToolMode
mode)
161
_parent.SetAllowedModes(
ToolMode
.DisplayHelp,
ToolMode
.DisplayHelp, Options.Cmd.Help, null);
244
SetAllowedModesFromOption(
ToolMode
.XmlSerializerGeneration,
ToolMode
.XmlSerializerGeneration, Options.Cmd.Out, "");
297
SetAllowedModesFromOption(
ToolMode
.XmlSerializerGeneration,
ToolMode
.XmlSerializerGeneration, Options.Cmd.ExcludeType, null);
303
private void SetAllowedModesFromOption(
ToolMode
newDefaultMode,
ToolMode
allowedModes, string option, string value)
Microsoft\Tools\ServiceModel\SvcUtil\ToolRuntime.cs (1)
24
if (_options.GetToolMode() ==
ToolMode
.DisplayHelp)