Implemented interface member:
property
IsPrimitive
System.Runtime.InteropServices._Type.IsPrimitive
105 references to IsPrimitive
mscorlib (27)
system\defaultbinder.cs (8)
226if (pCls.IsPrimitive) 256if (paramArrayType.IsPrimitive) 477if (pCls.IsPrimitive) { 551if (pCls.IsPrimitive) { 637if (pCls.IsPrimitive) { 651if (candidates[i].PropertyType.IsPrimitive) { 927if (c1.IsPrimitive && c2.IsPrimitive)
system\oleautbinder.cs (2)
45if (!type.IsPrimitive && type.IsInstanceOfType(value)) 56if (type.IsEnum && srcType.IsPrimitive)
system\reflection\emit\customattributebuilder.cs (5)
75if (t.IsPrimitive || t == typeof(String) || t == typeof(Type)) 186if (propertyValues[i] == null && propType.IsPrimitive) 242if (fieldValues[i] == null && fldType.IsPrimitive) 291if (type.IsPrimitive) 453else if (type.IsPrimitive)
system\reflection\fieldinfo.cs (1)
470if (fieldType.IsPointer || fieldType.IsEnum || fieldType.IsPrimitive)
system\reflection\typedelegator.cs (1)
197return typeImpl.IsPrimitive;
system\rttype.cs (2)
4423bool needsSpecialCast = IsPointer || IsEnum || IsPrimitive; 5105if (elementType.IsPrimitive ||
system\runtime\interopservices\tceadaptergen\eventsinkhelperwriter.cs (1)
198else if ( ReturnType.IsPrimitive )
system\runtime\remoting\message.cs (1)
767else if (pt.IsPrimitive)
system\runtime\remoting\messagesmuggler.cs (2)
32obj.GetType().IsPrimitive) 118if (elementType.IsPrimitive || (elementType == typeof(String)))
system\runtime\serialization\formatters\binary\binaryconverter.cs (1)
45if ((object)type != null && !type.IsPrimitive)
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (1)
147if (!objectType.IsPrimitive)
system\runtime\serialization\formatters\binary\binaryobjectwriter.cs (1)
739if (!arrayElemType.IsPrimitive)
system\typedreference.cs (1)
55if (fieldType.IsPrimitive)
PresentationBuildTasks (1)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1735if (value != null && (typeToConvertTo == typeof(String) || typeToConvertTo.IsPrimitive))
PresentationFramework (1)
src\Framework\MS\Internal\TraceData.cs (1)
257if (type.IsPrimitive || type.IsEnum)
System (5)
compmod\system\componentmodel\basenumberconverter.cs (2)
131if (destinationType.IsPrimitive) { 138if (base.CanConvertTo(context, t) || t.IsPrimitive) {
compmod\system\componentmodel\BindingList.cs (1)
89if (itemType.IsPrimitive) {
sys\system\configuration\SettingsPropertyValue.cs (2)
46if (_Value != null && !Property.PropertyType.IsPrimitive && !(_Value is string) && !(_Value is DateTime)) 238if (type == typeof(string) || type.IsPrimitive)
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\ContentCorrelationTypeExpander.xaml.cs (1)
239return ((type.IsPrimitive) || type.IsEnum || PrimitiveTypesInXPath.Any((item => item == type))
System.Activities.Presentation (6)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1089protected override bool IsPrimitiveImpl() { return _baseReflectionType.IsPrimitive; }
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (1)
143return type.IsPrimitive || type == typeof(string) || type == typeof(TimeSpan) || type == typeof(DateTime);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (1)
502if (itemType.IsPrimitive || itemType.IsEnum || itemType.Equals(typeof(String)))
System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyDescriptor.cs (1)
106if (itemType.IsPrimitive || itemType.IsEnum || itemType.Equals(typeof(String)))
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
425if (type.IsPrimitive || computedValue is string || type.IsEnum || computedValue is Uri)
System.Activities.Presentation\System\Activities\Presentation\View\TypeToStringValueConverter.cs (1)
23if (editedType.IsPrimitive || editedType.IsValueType ||
System.Core (2)
Microsoft\Scripting\Compiler\LambdaCompiler.Binary.cs (2)
169if (!leftType.IsPrimitive) { 324if (!type.IsPrimitive && type.IsValueType && !type.IsEnum) {
System.Data (7)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1089protected override bool IsPrimitiveImpl() { return _baseReflectionType.IsPrimitive; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (1)
143return type.IsPrimitive || type == typeof(string) || type == typeof(TimeSpan) || type == typeof(DateTime);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (1)
502if (itemType.IsPrimitive || itemType.IsEnum || itemType.Equals(typeof(String)))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyDescriptor.cs (1)
106if (itemType.IsPrimitive || itemType.IsEnum || itemType.Equals(typeof(String)))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
425if (type.IsPrimitive || computedValue is string || type.IsEnum || computedValue is Uri)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeToStringValueConverter.cs (1)
23if (editedType.IsPrimitive || editedType.IsValueType ||
fx\src\data\System\Data\Sql\sqlnorm.cs (1)
233if (t.IsPrimitive) {
System.Management (2)
property.cs (2)
26else if(theValue.GetType().IsPrimitive) 636 if (elementType.IsPrimitive)
System.Runtime.Remoting (2)
metadata\sudscommon.cs (1)
158if (clrType.IsPrimitive)
metadata\wsdlwriter.cs (1)
435if (!type.IsPrimitive || type == s_charType) //char is not a xsd type
System.Runtime.Serialization (1)
System\Runtime\Serialization\CodeGenerator.cs (1)
733return objType.IsValueType && !objType.IsPrimitive;
System.ServiceModel (2)
System\ServiceModel\Description\OperationGenerator.cs (1)
1032if (type.IsPrimitive || type == typeof(string))
System\ServiceModel\Dispatcher\CodeGenerator.cs (1)
321return objType.IsValueType && !objType.IsPrimitive;
System.Web (10)
Compilation\CodeDOMUtility.cs (2)
53else if (valueType.IsPrimitive) { 58(value == null || value.GetType().IsPrimitive)) {
Compilation\DelayLoadType.cs (1)
173return Type.IsPrimitive;
Profile\SqlProfileProvider.cs (1)
129if (prop.PropertyType.IsPrimitive || prop.PropertyType == typeof(string))
UI\WebControls\AdRotator.cs (1)
509return(type.IsPrimitive ||
UI\WebControls\BaseDataList.cs (1)
526return(type.IsPrimitive ||
UI\WebControls\BoundField.cs (1)
629if (data.GetType().IsPrimitive) {
UI\WebControls\DataBoundControlHelper.cs (1)
91if (type.IsPrimitive ||
UI\WebControls\ImageField.cs (1)
526if (data.GetType().IsPrimitive) {
Util\FastPropertyAccessor.cs (1)
179if (propertyType.IsPrimitive) {
System.Web.DynamicData (1)
DynamicData\SimpleFieldTemplateUserControl.cs (1)
71if (column.ColumnType.IsPrimitive) {
System.Web.Extensions (4)
Script\Serialization\JavaScriptSerializer.cs (1)
465if (o.GetType().IsPrimitive || o is Decimal) {
Script\Services\ServicesUtilities.cs (1)
51else if (type.IsPrimitive) {
Script\Services\WebServiceData.cs (2)
345if (t.IsPrimitive || t == typeof(object) || t == typeof(string) || 408if (t.IsPrimitive || t == typeof(object) || t == typeof(string) || t == typeof(DateTime) ||
System.Web.Mobile (1)
UI\MobileControls\ObjectList.cs (1)
887return(type.IsPrimitive ||
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
928else if (lastValue != null && propertyType != null && propertyType.IsEnum && lastValue.GetType().IsPrimitive) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
360if (propType != null && (propType.IsArray || propType.IsValueType || propType.IsPrimitive)) {
System.Workflow.Activities (5)
Common\ValidationHelpers.cs (1)
195if (!objType.IsPrimitive && (objType != typeof(string)))
Rules\Executor.cs (1)
858else if ((resultType.IsPrimitive) || (resultType == typeof(decimal)))
Rules\Expressions.cs (2)
2082else if (fromType2.IsPrimitive && toType2.IsPrimitive)
Rules\RuleValidation.cs (1)
1618return ((type.IsValueType) && (!type.IsPrimitive));
System.Workflow.ComponentModel (13)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
785return this.runtimeType.IsPrimitive;
AuthoringOM\Design\DesignerHelpers.cs (1)
1341if (!property.PropertyType.IsPrimitive)
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
764return type.IsPrimitive || type.IsEnum || type == typeof(Guid) || type == typeof(IntPtr) || type == typeof(string) || type == typeof(DateTime) || type == typeof(TimeSpan);
AuthoringOM\Serializer\ActivityCodeDomSerializationManager.cs (1)
205if (objectType.IsPrimitive || objectType.IsEnum || objectType == typeof(string) || typeof(Activity).IsAssignableFrom(objectType))
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (8)
302if (obj.GetType().IsPrimitive || obj.GetType() == typeof(string) || obj.GetType() == typeof(decimal) || 640if (obj.GetType().IsPrimitive || obj.GetType() == typeof(string) || obj.GetType() == typeof(decimal) || 1183if (valueType.IsPrimitive || valueType == typeof(System.String) || valueType.IsEnum 1242if (propertyType.IsPrimitive || propertyType == typeof(System.String)) 1273if (type.IsPrimitive || type.IsEnum || type == typeof(System.String)) 1738if (type.IsPrimitive || type == typeof(string) || type == typeof(decimal) || type == typeof(DateTime) || 1748else if (type.IsPrimitive || type == typeof(decimal) || type == typeof(TimeSpan) || type.IsEnum || type == typeof(Guid)) 2904!this.contentProperty.PropertyType.IsPrimitive &&
Shared\ValidationHelpers.cs (1)
194if (!objType.IsPrimitive && (objType != typeof(string)))
System.WorkflowServices (2)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (1)
125if (type.IsPrimitive)
System\Workflow\Activities\ReceiveActivity.cs (1)
1399!((methodInfo.ReturnType.IsPrimitive || methodInfo.ReturnType.IsEnum || methodInfo.ReturnType.IsValueType) && !ServiceOperationHelpers.IsNullableType(methodInfo.ReturnType));
System.Xml (7)
System\Xml\Serialization\CodeGenerator.cs (1)
685return objType.IsValueType && !objType.IsPrimitive;
System\Xml\Serialization\Types.cs (1)
750else if (type.IsPrimitive) {
System\Xml\Serialization\XmlSerializationReader.cs (2)
1563isPrimitive = elementType.IsPrimitive; 1570isPrimitive = elementType.IsPrimitive;
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1814if (!mapping.IsSoap && !mapping.TypeDesc.IsValueType && !mapping.TypeDesc.Type.IsPrimitive) {
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
532if (!mapping.TypeDesc.IsValueType && !mapping.TypeDesc.Type.IsPrimitive) { 2062else if (value.GetType().IsPrimitive) {
XamlBuildTask (3)
Microsoft\Build\Tasks\Xaml\AttributeData.cs (3)
245type.IsPrimitive || 269else if (type.IsPrimitive) 351else if (type.IsPrimitive)