140 references to One
dotnet-svcutil-lib (63)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
3752
private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(decimal.
One
, decimal.MaxValue);
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (2)
2428
if (copyElement.MinOccurs != Decimal.
One
&& this.Occurrence == InferenceOption.Relaxed)
2432
if (copyElement.MaxOccurs != Decimal.
One
)
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (8)
1079
if (groupRef.MinOccurs != decimal.
One
|| groupRef.MaxOccurs != decimal.
One
)
1944
if (particle.MinOccurs != decimal.Zero && particle.MinOccurs != decimal.
One
)
1946
particle.MinOccurs = decimal.
One
;
1949
if (particle.MaxOccurs != decimal.
One
)
1951
particle.MaxOccurs = decimal.
One
;
1958
if (element.MaxOccurs != decimal.Zero && element.MaxOccurs != decimal.
One
)
1960
element.MaxOccurs = decimal.
One
;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (20)
1157
if (groupRef.MinOccurs != decimal.
One
|| groupRef.MaxOccurs != decimal.
One
)
1218
else if (!root && all.Items.Count == 1 && all.MinOccurs == decimal.
One
&& all.MaxOccurs == decimal.
One
)
1246
if (p1.MinOccurs == decimal.
One
&& p1.MaxOccurs == decimal.
One
&& p1 is XmlSchemaChoice)
1270
else if (!root && choice.Items.Count == 1 && choice.MinOccurs == decimal.
One
&& choice.MaxOccurs == decimal.
One
)
1292
if (p1.MinOccurs == decimal.
One
&& p1.MaxOccurs == decimal.
One
&& p1 is XmlSchemaSequence)
1312
else if (!root && sequence.Items.Count == 1 && sequence.MinOccurs == decimal.
One
&& sequence.MaxOccurs == decimal.
One
)
2580
if (particle.MinOccurs == decimal.
One
&& particle.MaxOccurs == decimal.
One
)
2584
else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.
One
)
2592
else if (particle.MinOccurs == decimal.
One
&& particle.MaxOccurs == decimal.MaxValue)
2645
if (particle.MinOccurs == decimal.
One
&& particle.MaxOccurs == decimal.
One
)
2649
else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.
One
)
2657
else if (particle.MinOccurs == decimal.
One
&& particle.MaxOccurs == decimal.MaxValue)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (8)
730
if (groupRef.MinOccurs != decimal.
One
|| groupRef.MaxOccurs != decimal.
One
)
1591
if (particle.MinOccurs != decimal.Zero && particle.MinOccurs != decimal.
One
)
1593
particle.MinOccurs = decimal.
One
;
1596
if (particle.MaxOccurs != decimal.
One
)
1598
particle.MaxOccurs = decimal.
One
;
1604
if (element.MaxOccurs != decimal.Zero && element.MaxOccurs != decimal.
One
)
1606
element.MaxOccurs = decimal.
One
;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (19)
1283
if (groupRef.MinOccurs > decimal.
One
|| groupRef.MaxOccurs != decimal.
One
)
1361
if (p1.MinOccurs == decimal.
One
&& p1.MaxOccurs == decimal.
One
&& p1 is XmlSchemaChoice)
1385
else if (!root && choice.Items.Count == 1 && choice.MinOccurs == decimal.
One
&& choice.MaxOccurs == decimal.
One
)
1409
if (p1.MinOccurs == decimal.
One
&& p1.MaxOccurs == decimal.
One
&& p1Sequence != null)
1428
else if (!root && sequence.Items.Count == 1 && sequence.MinOccurs == decimal.
One
&& sequence.MaxOccurs == decimal.
One
)
1447
decimal one = decimal.
One
;
3023
if (particle.MinOccurs == decimal.
One
&& particle.MaxOccurs == decimal.
One
)
3027
else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.
One
)
3035
else if (particle.MinOccurs == decimal.
One
&& particle.MaxOccurs == decimal.MaxValue)
3089
if (particle.MinOccurs == decimal.
One
&& particle.MaxOccurs == decimal.
One
)
3093
else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.
One
)
3101
else if (particle.MinOccurs == decimal.
One
&& particle.MaxOccurs == decimal.MaxValue)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaParticle.cs (5)
26
private decimal _minOccurs = decimal.
One
;
27
private decimal _maxOccurs = decimal.
One
;
45
_minOccurs = decimal.
One
;
75
_maxOccurs = decimal.
One
;
150
get { return _maxOccurs > decimal.
One
; }
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTests.SpecialTypes.cs (1)
196
new object[] {"decimal", "decimal.One", decimal.
One
, true },
Microsoft.CodeAnalysis.CSharp (1)
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
82
else if (value == decimal.
One
)
Microsoft.CodeAnalysis.VisualBasic (1)
Lowering\LocalRewriter\LocalRewriter.vb (1)
710
Case Decimal.MinusOne, Decimal.Zero, Decimal.
One
Microsoft.Gen.Logging.Generated.Tests (2)
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesExtensions.cs (1)
49
public decimal TransitiveNumberProp { get; set; } = decimal.
One
;
test\Generators\Microsoft.Gen.Logging\TestClasses\TransitiveTestExtensions.cs (1)
34
public decimal this[string index] => decimal.
One
;
System.Data.Common (8)
System\Data\XMLSchema.cs (8)
544
if (isChoice && pt.MaxOccurs > decimal.
One
&& (((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)) // we know frominference condition
549
if (!FromInference || (((XmlSchemaElement)el).MaxOccurs != decimal.
One
&& !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)))
910
if (FromInference && pt is XmlSchemaChoice && pt.MaxOccurs > decimal.
One
&& (el.SchemaType is XmlSchemaComplexType))
2655
if ((((XmlSchemaElement)el).MaxOccurs != decimal.
One
) && (!isComplexTypeOrValidElementType))
2681
if (((XmlSchemaParticle)el).MaxOccurs > decimal.
One
&& (((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)) // amir
2683
if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != decimal.
One
&& !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)))
2827
if ((node.MaxOccurs > decimal.
One
) && typeNode == null)
2858
if ((node.MaxOccurs > decimal.
One
) && typeNode == null)
System.Linq.Expressions (1)
System\Linq\Expressions\Common\CachedReflectionInfo.cs (1)
39
s_Decimal_One ??= typeof(decimal).GetField(nameof(decimal.
One
))!;
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (3)
969
public static decimal operator ++(decimal d) => Add(d,
One
);
972
public static decimal operator --(decimal d) => Subtract(d,
One
);
1299
static decimal INumberBase<decimal>.One =>
One
;
System.Private.Xml (59)
System\Xml\Schema\DataTypeImplementation.cs (1)
3676
private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(decimal.
One
, decimal.MaxValue);
System\Xml\Schema\Inference\Infer.cs (2)
2408
if (copyElement.MinOccurs != decimal.
One
&& this.Occurrence == InferenceOption.Relaxed)
2412
if (copyElement.MaxOccurs != decimal.
One
)
System\Xml\Schema\Preprocessor.cs (8)
1044
if (groupRef.MinOccurs != decimal.
One
|| groupRef.MaxOccurs != decimal.
One
)
1910
if (particle.MinOccurs != decimal.Zero && particle.MinOccurs != decimal.
One
)
1912
particle.MinOccurs = decimal.
One
;
1915
if (particle.MaxOccurs != decimal.
One
)
1917
particle.MaxOccurs = decimal.
One
;
1924
if (element.MaxOccurs != decimal.Zero && element.MaxOccurs != decimal.
One
)
1926
element.MaxOccurs = decimal.
One
;
System\Xml\Schema\SchemaCollectionCompiler.cs (20)
1155
if (groupRef.MinOccurs != decimal.
One
|| groupRef.MaxOccurs != decimal.
One
)
1216
else if (!root && all.Items.Count == 1 && all.MinOccurs == decimal.
One
&& all.MaxOccurs == decimal.
One
)
1244
if (p1.MinOccurs == decimal.
One
&& p1.MaxOccurs == decimal.
One
&& p1 is XmlSchemaChoice)
1268
else if (!root && choice.Items.Count == 1 && choice.MinOccurs == decimal.
One
&& choice.MaxOccurs == decimal.
One
)
1290
if (p1.MinOccurs == decimal.
One
&& p1.MaxOccurs == decimal.
One
&& p1 is XmlSchemaSequence)
1310
else if (!root && sequence.Items.Count == 1 && sequence.MinOccurs == decimal.
One
&& sequence.MaxOccurs == decimal.
One
)
2489
if (particle.MinOccurs == decimal.
One
&& particle.MaxOccurs == decimal.
One
)
2493
else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.
One
)
2501
else if (particle.MinOccurs == decimal.
One
&& particle.MaxOccurs == decimal.MaxValue)
2552
if (particle.MinOccurs == decimal.
One
&& particle.MaxOccurs == decimal.
One
)
2556
else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.
One
)
2564
else if (particle.MinOccurs == decimal.
One
&& particle.MaxOccurs == decimal.MaxValue)
System\Xml\Schema\SchemaCollectionpreProcessor.cs (8)
722
if (groupRef.MinOccurs != decimal.
One
|| groupRef.MaxOccurs != decimal.
One
)
1578
if (particle.MinOccurs != decimal.Zero && particle.MinOccurs != decimal.
One
)
1580
particle.MinOccurs = decimal.
One
;
1583
if (particle.MaxOccurs != decimal.
One
)
1585
particle.MaxOccurs = decimal.
One
;
1591
if (element.MaxOccurs != decimal.Zero && element.MaxOccurs != decimal.
One
)
1593
element.MaxOccurs = decimal.
One
;
System\Xml\Schema\SchemaSetCompiler.cs (15)
1296
if (groupRef.MinOccurs > decimal.
One
|| groupRef.MaxOccurs != decimal.
One
)
1377
if (p1.MinOccurs == decimal.
One
&& p1.MaxOccurs == decimal.
One
&& p1 is XmlSchemaChoice)
1401
else if (!root && choice.Items.Count == 1 && choice.MinOccurs == decimal.
One
&& choice.MaxOccurs == decimal.
One
)
1425
if (p1.MinOccurs == decimal.
One
&& p1.MaxOccurs == decimal.
One
&& p1Sequence != null)
1444
else if (!root && sequence.Items.Count == 1 && sequence.MinOccurs == decimal.
One
&& sequence.MaxOccurs == decimal.
One
)
1465
decimal one = decimal.
One
;
2933
if (particle.MinOccurs == decimal.
One
&& particle.MaxOccurs == decimal.
One
)
2937
else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.
One
)
2945
else if (particle.MinOccurs == decimal.
One
&& particle.MaxOccurs == decimal.MaxValue)
System\Xml\Schema\XmlSchemaParticle.cs (5)
17
private decimal _minOccurs = decimal.
One
;
18
private decimal _maxOccurs = decimal.
One
;
32
_minOccurs = decimal.
One
;
58
_maxOccurs = decimal.
One
;
125
get { return _maxOccurs > decimal.
One
; }
System.Windows.Forms (1)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
23
private const decimal DefaultIncrement = decimal.
One
;