68 references to One
mscorlib (4)
system\decimal.cs (2)
1127return Add(d, One); 1131return Subtract(d, One);
system\runtime\remoting\soapinteroptypes.cs (2)
1136if (_value < Decimal.One) 1149if (_value < Decimal.One)
System.Data (8)
fx\src\data\System\Data\XMLSchema.cs (8)
475if (isChoice && pt.MaxOccurs > Decimal.One && (((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)) // we know frominference condition 479if (!FromInference || (((XmlSchemaElement)el).MaxOccurs != Decimal.One && !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType))) 778if (this.FromInference && pt is XmlSchemaChoice && pt.MaxOccurs > Decimal.One && (el.SchemaType is XmlSchemaComplexType)) 2290if ((((XmlSchemaElement)el).MaxOccurs != Decimal.One ) && (!isComplexTypeOrValidElementType)) { 2310if (((XmlSchemaParticle)el).MaxOccurs > Decimal.One && (((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)) // amir 2312if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != Decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType))) 2437if ( (node.MaxOccurs > decimal.One) && typeNode == null ){ 2464if ( (node.MaxOccurs > decimal.One) && typeNode == null ){
System.Windows.Forms (1)
winforms\Managed\System\WinForms\NumericUpDown.cs (1)
39private static readonly Decimal DefaultIncrement = Decimal.One;
System.Xml (55)
System\Xml\Schema\DataTypeImplementation.cs (1)
3419static readonly FacetsChecker numeric10FacetsChecker = new Numeric10FacetsChecker(decimal.One, decimal.MaxValue);
System\Xml\Schema\Inference\Infer.cs (2)
2389if (copyElement.MinOccurs != Decimal.One && this.Occurrence == InferenceOption.Relaxed) 2393if (copyElement.MaxOccurs != Decimal.One) {
System\Xml\Schema\Preprocessor.cs (8)
896if (groupRef.MinOccurs != decimal.One || groupRef.MaxOccurs != decimal.One) { 1574if (particle.MinOccurs != decimal.Zero && particle.MinOccurs != decimal.One) { 1575particle.MinOccurs = decimal.One; 1578if (particle.MaxOccurs != decimal.One) { 1579particle.MaxOccurs = decimal.One; 1585if (element.MaxOccurs != decimal.Zero && element.MaxOccurs != decimal.One) { 1586element.MaxOccurs = decimal.One;
System\Xml\Schema\SchemaCollectionCompiler.cs (16)
919if (groupRef.MinOccurs != decimal.One || groupRef.MaxOccurs != decimal.One) { 970else if (!root && all.Items.Count == 1 && all.MinOccurs == decimal.One && all.MaxOccurs == decimal.One) { 991if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaChoice) { 1010else if (!root && choice.Items.Count == 1 && choice.MinOccurs == decimal.One && choice.MaxOccurs == decimal.One) { 1026if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaSequence) { 1042else if (!root && sequence.Items.Count == 1 && sequence.MinOccurs == decimal.One && sequence.MaxOccurs == decimal.One) { 2095if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.One) { 2098else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.One) { 2104else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue) {
System\Xml\Schema\SchemaCollectionpreProcessor.cs (8)
590if (groupRef.MinOccurs != decimal.One || groupRef.MaxOccurs != decimal.One) { 1262if (particle.MinOccurs != decimal.Zero && particle.MinOccurs != decimal.One) { 1263particle.MinOccurs = decimal.One; 1266if (particle.MaxOccurs != decimal.One) { 1267particle.MaxOccurs = decimal.One; 1272if (element.MaxOccurs != decimal.Zero && element.MaxOccurs != decimal.One) { 1273element.MaxOccurs = decimal.One;
System\Xml\Schema\SchemaSetCompiler.cs (15)
1017if (groupRef.MinOccurs > decimal.One || groupRef.MaxOccurs != decimal.One) { 1080if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaChoice) { 1099else if (!root && choice.Items.Count == 1 && choice.MinOccurs == decimal.One && choice.MaxOccurs == decimal.One) { 1117if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1Sequence != null) { 1132else if (!root && sequence.Items.Count == 1 && sequence.MinOccurs == decimal.One && sequence.MaxOccurs == decimal.One) { 1147decimal one = decimal.One; 2451if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.One) { 2454else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.One) { 2460else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue) {
System\Xml\Schema\XmlSchemaParticle.cs (5)
23decimal minOccurs = decimal.One; 24decimal maxOccurs = decimal.One; 38minOccurs = decimal.One; 62maxOccurs = decimal.One; 123get { return maxOccurs > decimal.One; }