1 write to _customAttributeInfo
System.Web.DataVisualization (1)
Common\Converters\CustomAttributesConverters.cs (1)
515
this.
_customAttributeInfo
= customAttributeInfo;
32 references to _customAttributeInfo
System.Web.DataVisualization (32)
Common\Converters\CustomAttributesConverters.cs (32)
541
if(this.
_customAttributeInfo
!= null)
545
val = GetValueFromString(this.
_customAttributeInfo
.DefaultValue);
624
string defaultValue = GetStringFromValue(this.
_customAttributeInfo
.DefaultValue);
638
if(this.
_customAttributeInfo
.ValueType == obj.GetType() )
646
if(this.
_customAttributeInfo
.ValueType == typeof(string) )
650
else if(this.
_customAttributeInfo
.ValueType == typeof(float) )
654
else if(this.
_customAttributeInfo
.ValueType == typeof(double) )
658
else if(this.
_customAttributeInfo
.ValueType == typeof(int) )
662
else if(this.
_customAttributeInfo
.ValueType == typeof(bool) )
666
else if(this.
_customAttributeInfo
.ValueType == typeof(Color) )
671
else if(this.
_customAttributeInfo
.ValueType.IsEnum)
673
result = Enum.Parse(this.
_customAttributeInfo
.ValueType, stringValue, true);
677
throw (new InvalidOperationException(SR.ExceptionCustomAttributeTypeUnsupported( this.
_customAttributeInfo
.ValueType.ToString() )));
728
if(this.
_customAttributeInfo
== null)
735
if(this.
_customAttributeInfo
.MaxValue != null)
737
if(value.GetType() != this.
_customAttributeInfo
.MaxValue.GetType())
744
if((float)value > (float)this.
_customAttributeInfo
.MaxValue)
751
if((double)value > (double)this.
_customAttributeInfo
.MaxValue)
758
if((int)value > (int)this.
_customAttributeInfo
.MaxValue)
771
if(this.
_customAttributeInfo
.MinValue != null)
773
if(value.GetType() != this.
_customAttributeInfo
.MinValue.GetType())
780
if((float)value < (float)this.
_customAttributeInfo
.MinValue)
787
if((double)value < (double)this.
_customAttributeInfo
.MinValue)
794
if((int)value < (int)this.
_customAttributeInfo
.MinValue)
808
if(this.
_customAttributeInfo
.MaxValue != null && this.
_customAttributeInfo
.MinValue != null)
810
throw(new InvalidOperationException(SR.ExceptionCustomAttributeMustBeInRange(attrName, this.
_customAttributeInfo
.MinValue.ToString(),this.
_customAttributeInfo
.MaxValue.ToString() )));
812
else if(this.
_customAttributeInfo
.MinValue != null)
814
throw(new InvalidOperationException(SR.ExceptionCustomAttributeMustBeBiggerThenValue(attrName, this.
_customAttributeInfo
.MinValue.ToString())));
816
else if(this.
_customAttributeInfo
.MaxValue != null)
818
throw(new InvalidOperationException(SR.ExceptionCustomAttributeMustBeMoreThenValue(attrName, this.
_customAttributeInfo
.MaxValue.ToString())));