1 write to _type
System.Configuration (1)
System\Configuration\ConfigurationProperty.cs (1)
188
_type
= type;
14 references to _type
System.Configuration (14)
System\Configuration\ConfigurationProperty.cs (14)
199
if (!_validator.CanValidate(
_type
)) {
218
bool canAssign =
_type
.IsAssignableFrom(value.GetType());
243
if ((defaultValue != null) && (defaultValue is string) && (
_type
!= typeof(string))) {
253
if (
_type
== typeof(string)) {
256
else if (
_type
.IsValueType) {
257
defaultValue = TypeUtil.CreateInstanceWithReflectionPermission(
_type
);
286
_isConfigurationElementType = typeof(ConfigurationElement).IsAssignableFrom(
_type
);
296
return
_type
;
396
if (
_type
== typeof(bool)) {
426
if (
_type
.IsEnum) {
427
_converter = new GenericEnumConverter(
_type
);
429
else if (!
_type
.IsSubclassOf(typeof(ConfigurationElement))) {
430
_converter = TypeDescriptor.GetConverter(
_type
);
435
throw new ConfigurationErrorsException(SR.GetString(SR.No_converter, _name,
_type
.Name));