Home
last modified time | relevance | path

Searched refs:destinationType (Results 1 – 25 of 562) sorted by relevance

12345678910>>...23

/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Xml/System/Xml/Schema/
H A DXmlValueConverter.cs1062 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1076 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1090 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1105 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1122 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1330 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1343 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1357 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1373 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1582 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Private.Xml/src/System/Xml/Schema/
H A DXmlValueConverter.cs998 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1013 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1028 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1044 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1062 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1246 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1261 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1278 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1481 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
1496 if (destinationType == ObjectType) destinationType = DefaultClrType; in ChangeType()
[all …]
H A DXmlUntypedStringConverter.cs62 if (destinationType == null) throw new ArgumentNullException(nameof(destinationType)); in FromString()
64 if (destinationType == s_objectType) destinationType = typeof(string); in FromString()
68 if (destinationType == s_dateTimeType) return StringToDateTime((string)value); in FromString()
73 if (destinationType == s_int32Type) return XmlConvert.ToInt32((string)value); in FromString()
74 if (destinationType == s_int64Type) return XmlConvert.ToInt64((string)value); in FromString()
81 if (destinationType == s_uriType) return XmlConvert.ToUri((string)value); in FromString()
83 if (destinationType == s_stringType) return ((string)value); in FromString()
85 return StringToListType(value, destinationType, nsResolver); in FromString()
187 if (_listsAllowed && destinationType.IsArray) in StringToListType()
189 Type itemTypeDst = destinationType.GetElementType(); in StringToListType()
[all …]
/dports/graphics/cfdg/cfdg-3.3_1/src-net/DPS_3.06/Docking/
H A DDockPanelSkin.cs304 if (destinationType == typeof(DockPanelSkin)) in CanConvertTo()
307 return base.CanConvertTo(context, destinationType); in CanConvertTo()
324 if (destinationType == typeof(DockPanelGradient)) in CanConvertTo()
327 return base.CanConvertTo(context, destinationType); in CanConvertTo()
344 if (destinationType == typeof(AutoHideStripSkin)) in CanConvertTo()
347 return base.CanConvertTo(context, destinationType); in CanConvertTo()
364 if (destinationType == typeof(DockPaneStripSkin)) in CanConvertTo()
367 return base.CanConvertTo(context, destinationType); in CanConvertTo()
387 return base.CanConvertTo(context, destinationType); in CanConvertTo()
404 if (destinationType == typeof(TabGradient)) in CanConvertTo()
[all …]
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.ui/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/refactoring/structure/
H A DMemberCheckUtil.java48 checkMethodInType(destinationType, result, (IMethod)member); in checkMembersInDestinationType()
50 checkFieldInType(destinationType, result, (IField)member); in checkMembersInDestinationType()
52 checkTypeInType(destinationType, result, (IType)member); in checkMembersInDestinationType()
58 IMethod[] destinationTypeMethods= destinationType.getMethods(); in checkMethodInType()
66 IMethod similar= Checks.findMethod(method, destinationType); in checkMethodInType()
88 IType destinationTypeType= destinationType.getType(typeName); in checkTypeInType()
96 if (destinationType.getElementName().equals(typeName)){ in checkTypeInType()
98 …ngStatusContext context= JavaStatusContext.create(destinationType.getCompilationUnit(), destinatio… in checkTypeInType()
103 …ngStatusContext context= JavaStatusContext.create(destinationType.getCompilationUnit(), destinatio… in checkTypeInType()
115 …ngStatusContext context= JavaStatusContext.create(destinationType.getCompilationUnit(), destinatio… in checkHierarchyOfEnclosedTypes()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.ComponentModel.TypeConverter/tests/
H A DSampleClasses.cs132 if (destinationType == typeof(int)) in CanConvertTo()
136 return base.CanConvertTo(context, destinationType); in CanConvertTo()
150 if (destinationType == typeof(int)) in ConvertTo()
158 return base.ConvertTo(context, culture, value, destinationType); in ConvertTo()
209 if (destinationType == typeof(int)) in CanConvertTo()
213 return base.CanConvertTo(context, destinationType); in CanConvertTo()
228 if (destinationType == typeof(int)) in ConvertTo()
275 if (destinationType == typeof(string) || destinationType == typeof(int)) in CanConvertTo()
279 return base.CanConvertTo(context, destinationType); in CanConvertTo()
284 if (destinationType == typeof(string)) in ConvertTo()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/src/System.Web.Http/ValueProviders/
H A DValueProviderResult.cs47 if (value == null || destinationType.IsInstanceOfType(value)) in ConvertSimpleType()
59 TypeConverter converter = TypeDescriptor.GetConverter(destinationType); in ConvertSimpleType()
65 if (!(canConvertFrom || converter.CanConvertTo(destinationType))) in ConvertSimpleType()
68 if (destinationType.IsEnum && value is int) in ConvertSimpleType()
70 return Enum.ToObject(destinationType, (int)value); in ConvertSimpleType()
74 Type underlyingType = Nullable.GetUnderlyingType(destinationType); in ConvertSimpleType()
113 if (value == null || destinationType.IsInstanceOfType(value)) in UnwrapPossibleArrayType()
120 if (destinationType.IsArray) in UnwrapPossibleArrayType()
122 Type destinationElementType = destinationType.GetElementType(); in UnwrapPossibleArrayType()
148 return ConvertSimpleType(culture, value, destinationType); in UnwrapPossibleArrayType()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Web/ModelBinding/
H A DValueProviderResult.cs46 if (value == null || destinationType.IsInstanceOfType(value)) { in ConvertSimpleType()
61 if (!(canConvertFrom || converter.CanConvertTo(destinationType))) { in ConvertSimpleType()
63 if (destinationType.IsEnum && value is int) { in ConvertSimpleType()
64 return Enum.ToObject(destinationType, (int)value); in ConvertSimpleType()
74 value.GetType().FullName, destinationType.FullName); in ConvertSimpleType()
86 value.GetType().FullName, destinationType.FullName); in ConvertSimpleType()
105 if (value == null || destinationType.IsInstanceOfType(value)) { in UnwrapPossibleArrayType()
111 if (destinationType.IsArray) { in UnwrapPossibleArrayType()
112 Type destinationElementType = destinationType.GetElementType(); in UnwrapPossibleArrayType()
133 return ConvertSimpleType(culture, value, destinationType); in UnwrapPossibleArrayType()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/src/System.Web.Mvc/
H A DValueProviderResult.cs47 if (value == null || destinationType.IsInstanceOfType(value)) in ConvertSimpleType()
59 TypeConverter converter = TypeDescriptor.GetConverter(destinationType); in ConvertSimpleType()
65 if (!(canConvertFrom || converter.CanConvertTo(destinationType))) in ConvertSimpleType()
68 if (destinationType.IsEnum && value is int) in ConvertSimpleType()
70 return Enum.ToObject(destinationType, (int)value); in ConvertSimpleType()
74 Type underlyingType = Nullable.GetUnderlyingType(destinationType); in ConvertSimpleType()
118 if (value == null || destinationType.IsInstanceOfType(value)) in UnwrapPossibleArrayType()
125 if (destinationType.IsArray) in UnwrapPossibleArrayType()
127 Type destinationElementType = destinationType.GetElementType(); in UnwrapPossibleArrayType()
153 return ConvertSimpleType(culture, value, destinationType); in UnwrapPossibleArrayType()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/src/System.Web.WebPages/Html/
H A DHtmlHelper.Internal.cs30 if (value == null || destinationType.IsInstanceOfType(value)) in UnwrapPossibleArrayType()
37 if (destinationType.IsArray) in UnwrapPossibleArrayType()
39 Type destinationElementType = destinationType.GetElementType(); in UnwrapPossibleArrayType()
65 return ConvertSimpleType(value, destinationType, culture); in UnwrapPossibleArrayType()
74 return ConvertSimpleType(value, destinationType, culture); in UnwrapPossibleArrayType()
79 if (value == null || destinationType.IsInstanceOfType(value)) in ConvertSimpleType()
91 TypeConverter converter = TypeDescriptor.GetConverter(destinationType); in ConvertSimpleType()
97 if (!(canConvertFrom || converter.CanConvertTo(destinationType))) in ConvertSimpleType()
100 value.GetType().FullName, destinationType.FullName); in ConvertSimpleType()
108 …nverter.ConvertTo(context: null, culture: culture, value: value, destinationType: destinationType); in ConvertSimpleType()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Windows.Forms/System.Windows.Forms/
H A DListViewItemConverter.cs46 public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType) { in CanConvertTo() argument
47 if (destinationType == typeof (string)) { in CanConvertTo()
51 return base.CanConvertTo (context, destinationType); in CanConvertTo()
56 Type destinationType) in ConvertTo() argument
58 if (destinationType == typeof (string)) { in ConvertTo()
61 return base.ConvertTo (context, culture, value, destinationType); in ConvertTo()
69 public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType) { in CanConvertTo() argument
70 if (destinationType == typeof(InstanceDescriptor)) { in CanConvertTo()
73 return base.CanConvertTo(context, destinationType); in CanConvertTo()
78 if (destinationType == typeof(InstanceDescriptor) && value is ListViewItem.ListViewSubItem) { in ConvertTo()
[all …]
H A DCursorConverter.cs53 public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType) in CanConvertTo() argument
55 if (destinationType == typeof (byte []) || destinationType == typeof (InstanceDescriptor)) in CanConvertTo()
57 return base.CanConvertTo (context, destinationType); in CanConvertTo()
73 object value, Type destinationType) in ConvertTo() argument
75 if (destinationType == null) in ConvertTo()
78 if (value == null && destinationType == typeof (string)) in ConvertTo()
84 if (destinationType == typeof (byte [])) { in ConvertTo()
98 } else if (destinationType == typeof (InstanceDescriptor)) { in ConvertTo()
106 return base.ConvertTo (context, culture, value, destinationType); in ConvertTo()
/dports/devel/log4net/log4net-1.2.10/src/Util/TypeConverters/
H A DConverterRegistry.cs96 public static void AddConverter(Type destinationType, object converter) in AddConverter() argument
98 if (destinationType != null && converter != null) in AddConverter()
102 s_type2converter[destinationType] = converter; in AddConverter()
117 public static void AddConverter(Type destinationType, Type converterType) in AddConverter() argument
119 AddConverter(destinationType, CreateConverterInstance(converterType)); in AddConverter()
136 public static IConvertTo GetConvertTo(Type sourceType, Type destinationType) in GetConvertTo() argument
177 public static IConvertFrom GetConvertFrom(Type destinationType) in GetConvertFrom() argument
185 IConvertFrom converter = s_type2converter[destinationType] as IConvertFrom; in GetConvertFrom()
190 converter = GetConverterFromAttribute(destinationType) as IConvertFrom; in GetConvertFrom()
195 s_type2converter[destinationType] = converter; in GetConvertFrom()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Web.Mvc3/Mvc/
H A DValueProviderResult.cs47 if (value == null || destinationType.IsInstanceOfType(value)) { in ConvertSimpleType()
57 TypeConverter converter = TypeDescriptor.GetConverter(destinationType); in ConvertSimpleType()
62 if (!(canConvertFrom || converter.CanConvertTo(destinationType))) { in ConvertSimpleType()
64 value.GetType().FullName, destinationType.FullName); in ConvertSimpleType()
71 converter.ConvertTo(null /* context */, culture, value, destinationType); in ConvertSimpleType()
76 value.GetType().FullName, destinationType.FullName); in ConvertSimpleType()
95 if (value == null || destinationType.IsInstanceOfType(value)) { in UnwrapPossibleArrayType()
101 if (destinationType.IsArray) { in UnwrapPossibleArrayType()
102 Type destinationElementType = destinationType.GetElementType(); in UnwrapPossibleArrayType()
123 return ConvertSimpleType(culture, value, destinationType); in UnwrapPossibleArrayType()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Data.Common/src/System/Data/
H A DPrimaryKeyTypeConverter.cs19 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) => in CanConvertTo() argument
20 destinationType == typeof(string) || in CanConvertTo()
21 base.CanConvertTo(context, destinationType); in CanConvertTo()
23 … ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) in ConvertTo() argument
25 if (destinationType == null) in ConvertTo()
27 throw new ArgumentNullException(nameof(destinationType)); in ConvertTo()
30 return destinationType == typeof(string) ? in ConvertTo()
32 base.ConvertTo(context, culture, value, destinationType); in ConvertTo()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.ComponentModel.TypeConverter/src/System/ComponentModel/
H A DUriTypeConverter.cs32 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) in CanConvertTo() argument
34 return (destinationType == typeof(string) || destinationType == typeof(Uri)); in CanConvertTo()
65 … ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) in ConvertTo() argument
67 if (destinationType == null) in ConvertTo()
69 throw new ArgumentNullException(nameof(destinationType)); in ConvertTo()
75 if (destinationType == typeof(string)) in ConvertTo()
78 if (destinationType == typeof(Uri)) in ConvertTo()
82 throw GetConvertToException(value, destinationType); in ConvertTo()
H A DBaseNumberConverter.cs94 … ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) in ConvertTo() argument
96 if (destinationType == null) in ConvertTo()
98 throw new ArgumentNullException(nameof(destinationType)); in ConvertTo()
101 … if (destinationType == typeof(string) && value != null && TargetType.IsInstanceOfType(value)) in ConvertTo()
111 if (destinationType.IsPrimitive) in ConvertTo()
113 return Convert.ChangeType(value, destinationType, culture); in ConvertTo()
115 return base.ConvertTo(context, culture, value, destinationType); in ConvertTo()
118 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) in CanConvertTo() argument
120 return base.CanConvertTo(context, destinationType) || destinationType.IsPrimitive; in CanConvertTo()
H A DGuidConverter.cs34 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) in CanConvertTo() argument
36 if (destinationType == typeof(InstanceDescriptor)) in CanConvertTo()
40 return base.CanConvertTo(context, destinationType); in CanConvertTo()
64 … ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) in ConvertTo() argument
66 if (destinationType == null) in ConvertTo()
68 throw new ArgumentNullException(nameof(destinationType)); in ConvertTo()
70 if (destinationType == typeof(InstanceDescriptor) && value is Guid) in ConvertTo()
78 return base.ConvertTo(context, culture, value, destinationType); in ConvertTo()
H A DNullableConverter.cs78 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) in CanConvertTo() argument
80 if (destinationType == UnderlyingType) in CanConvertTo()
86 return UnderlyingTypeConverter.CanConvertTo(context, destinationType); in CanConvertTo()
90 return base.CanConvertTo(context, destinationType); in CanConvertTo()
97 …iptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) in ConvertTo() argument
99 if (destinationType == null) in ConvertTo()
101 throw new ArgumentNullException(nameof(destinationType)); in ConvertTo()
104 … if (destinationType == UnderlyingType && value != null && NullableType.IsInstanceOfType(value)) in ConvertTo()
111 if (destinationType == typeof(string)) in ConvertTo()
118 return UnderlyingTypeConverter.ConvertTo(context, culture, value, destinationType); in ConvertTo()
[all …]
H A DDecimalConverter.cs35 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) in CanConvertTo() argument
37 if (destinationType == typeof(InstanceDescriptor)) in CanConvertTo()
41 return base.CanConvertTo(context, destinationType); in CanConvertTo()
51 … ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) in ConvertTo() argument
53 if (destinationType == null) in ConvertTo()
55 throw new ArgumentNullException(nameof(destinationType)); in ConvertTo()
58 if (destinationType == typeof(InstanceDescriptor) && value is Decimal) in ConvertTo()
75 return base.ConvertTo(context, culture, value, destinationType); in ConvertTo()
/dports/lang/spidermonkey60/firefox-60.9.0/testing/web-platform/tests/css/selectors/utils/
H A Dgenerators.pm104 my($destinationType, $testList, $testDatabase) = @_;
138 if ($type ne $destinationType) {
149 my($destinationType, $testList, $testDatabase) = @_;
169 if ($type ne $destinationType) {
180 my($destinationType, $testType, $testList, $testDatabase) = @_;
205 if ($type ne $destinationType) {
216 my($destinationType, $testType, $testList, $testDatabase) = @_;
236 if ($type ne $destinationType) {
268 if ($type ne $destinationType) {
284 my($destinationType, $tests, $testDatabase, $testIndex) = @_;
[all …]
/dports/lang/spidermonkey60/firefox-60.9.0/layout/reftests/w3c-css/received/selectors/utils/
H A Dgenerators.pm104 my($destinationType, $testList, $testDatabase) = @_;
138 if ($type ne $destinationType) {
149 my($destinationType, $testList, $testDatabase) = @_;
169 if ($type ne $destinationType) {
180 my($destinationType, $testType, $testList, $testDatabase) = @_;
205 if ($type ne $destinationType) {
216 my($destinationType, $testType, $testList, $testDatabase) = @_;
236 if ($type ne $destinationType) {
268 if ($type ne $destinationType) {
284 my($destinationType, $tests, $testDatabase, $testIndex) = @_;
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System/net/System/
H A D_UriTypeConverter.cs52 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) in CanConvertTo() argument
54 if (destinationType == typeof(InstanceDescriptor)) in CanConvertTo()
57 if (destinationType == typeof(string)) in CanConvertTo()
60 if (destinationType == typeof(Uri)) in CanConvertTo()
63 return base.CanConvertTo(context, destinationType); in CanConvertTo()
80 … ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) in ConvertTo() argument
84 if (uri != null && destinationType == typeof(InstanceDescriptor)) in ConvertTo()
91 if (uri != null && destinationType == typeof(string)) in ConvertTo()
94 if (uri != null && destinationType == typeof(Uri)) in ConvertTo()
98 return base.ConvertTo(context, culture, value, destinationType); in ConvertTo()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Data/System/Data/
H A DPrimaryKeyTypeConverter.cs26 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { in CanConvertTo() argument
27 if (destinationType == typeof(String)) { in CanConvertTo()
30 return base.CanConvertTo(context, destinationType); in CanConvertTo()
33 …onvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { in ConvertTo() argument
34 if (destinationType == null) { in ConvertTo()
38 if (destinationType == typeof(string)) { in ConvertTo()
42 return base.ConvertTo(context, culture, value, destinationType); in ConvertTo()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System/compmod/system/componentmodel/
H A DNullableConverter.cs79 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { in CanConvertTo() argument
80 if (destinationType == this.simpleType) { in CanConvertTo()
83 else if (destinationType == typeof(InstanceDescriptor)) { in CanConvertTo()
87 return this.simpleTypeConverter.CanConvertTo(context, destinationType); in CanConvertTo()
90 return base.CanConvertTo(context, destinationType); in CanConvertTo()
98 if (destinationType == null) { in ConvertTo()
102 if (destinationType == this.simpleType && this.nullableType.IsInstanceOfType(value)) { in ConvertTo()
105 else if (destinationType == typeof(InstanceDescriptor)) { in ConvertTo()
112 if (destinationType == typeof(string)) { in ConvertTo()
117 return this.simpleTypeConverter.ConvertTo(context, culture, value, destinationType); in ConvertTo()
[all …]

12345678910>>...23