BadScript 2
Loading...
Searching...
No Matches
PopsicleSetter.cs
Go to the documentation of this file.
1
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
2
3
using
System;
4
5
namespace
CommandLine.Infrastructure
6
{
7
internal
static
class
PopsicleSetter
8
{
9
public
static
void
Set<T>
(
bool
consumed, ref T field, T value)
10
{
11
if
(consumed)
12
{
13
throw
new
InvalidOperationException();
14
}
15
16
field = value;
17
}
18
}
19
}
CommandLine.Infrastructure.PopsicleSetter
Definition
PopsicleSetter.cs:8
CommandLine.Infrastructure.PopsicleSetter.Set< T >
static void Set< T >(bool consumed, ref T field, T value)
Definition
PopsicleSetter.cs:9
CommandLine.Infrastructure
Definition
EnumerableExtensions.cs:8
deps
commandlineparser
src
CommandLine
Infrastructure
PopsicleSetter.cs
Generated by
1.9.8