6078 references to GetType
Microsoft.Activities.Build (2)
Microsoft\Activities\Build\Expressions\ExpressionsBuildExtension.cs (2)
116string activityName = activity.GetType().Name; 119string fullActivityNamespace = activity.GetType().Namespace;
mscorlib (510)
microsoft\win32\registrykey.cs (1)
1617throw new ArgumentException(Environment.GetResourceString("Arg_RegSetBadArrType", value.GetType().Name));
system\__comobject.cs (1)
67fIsURTAggregated = !GetType().IsDefined(typeof(ComImportAttribute), false);
system\appdomain.cs (3)
567bool notifyFusion = _domainManager.GetType() != typeof(System.AppDomainManager) && !DisableFusionUpdatesFromADManager(); 3638hsm.GetType() != typeof(HostSecurityManager) && 4869return base.GetType();
system\attribute.cs (13)
258Type objType = objAttr[i].GetType(); 286Type objType = objAttr[i].GetType(); 352Type objType = objAttr[i].GetType(); 374Type attrType = attributes[i].GetType(); 402Type attrType = attributes[i].GetType(); 838RuntimeType thisType = (RuntimeType)this.GetType(); 839RuntimeType thatType = (RuntimeType)obj.GetType(); 872if (thisValue.GetType().IsArray) 875if (!thisValue.GetType().Equals(thatValue.GetType())) 914Type type = GetType(); 928if (fieldValue != null && !fieldValue.GetType().IsArray) 943public virtual Object TypeId { get { return GetType(); } }
system\collections\arraylist.cs (1)
2556isArrayList = (list.GetType() == typeof(ArrayList));
system\collections\emptyreadonlydictionaryinternal.cs (4)
89if (!key.GetType().IsSerializable) 92if( (value != null) && (!value.GetType().IsSerializable ) ) 121if (!key.GetType().IsSerializable) 124if( (value != null) && (!value.GetType().IsSerializable) )
system\collections\generic\comparer.cs (3)
104return this.GetType().Name.GetHashCode(); 128return this.GetType().Name.GetHashCode(); 146return this.GetType().Name.GetHashCode();
system\collections\generic\equalitycomparer.cs (8)
181return this.GetType().Name.GetHashCode(); 240return this.GetType().Name.GetHashCode(); 300return this.GetType().Name.GetHashCode(); 379return this.GetType().Name.GetHashCode(); 419return this.GetType().Name.GetHashCode(); 476return this.GetType().Name.GetHashCode(); 547return (this.GetType().Name.GetHashCode() ^ ((int) (_entropy & 0x7FFFFFFF))); 599return (this.GetType().Name.GetHashCode() ^ ((int) (_entropy & 0x7FFFFFFF)));
system\collections\listdictionaryinternal.cs (4)
57if (!key.GetType().IsSerializable) 60if( (value != null) && (!value.GetType().IsSerializable ) ) 144if (!key.GetType().IsSerializable) 147if( (value != null) && (!value.GetType().IsSerializable) )
system\collections\objectmodel\collection.cs (1)
206Type targetType = array.GetType().GetElementType();
system\collections\objectmodel\readonlycollection.cs (1)
151Type targetType = array.GetType().GetElementType();
system\collections\objectmodel\readonlydictionary.cs (1)
598Type targetType = array.GetType().GetElementType();
system\convert.cs (3)
272if (value.GetType() == targetType) 318throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", value.GetType().FullName, targetType.FullName)); 340if ( value.GetType() == conversionType) {
system\defaultbinder.cs (2)
95argTypes[i] = args[i].GetType(); 458valueType = value.GetType();
system\delegate.cs (7)
62if (!BindToMethodName(target, (RuntimeType)target.GetType(), method, 121RuntimeMethodInfo invoke = (RuntimeMethodInfo)RuntimeType.GetMethodBase((RuntimeType)this.GetType(), method); 191return GetType().GetHashCode(); 256Type currentType = _target.GetType(); 272BCLDebug.Assert(currentType != null || _target.GetType().IsCOMObject, "The class hierarchy should declare the method"); 277MethodInfo invoke = this.GetType().GetMethod("Invoke"); 405if (!d.BindToMethodName(target, (RuntimeType)target.GetType(), method,
system\deployment\isolationinterop.cs (1)
2511System.Type t = o.GetType();
system\diagnostics\eventing\eventprovider.cs (1)
841Type underlyingType = Enum.GetUnderlyingType(data.GetType());
system\diagnostics\eventing\eventsource.cs (5)
754var myType = this.GetType(); 2101if ((args[i] != null && (args[i].GetType() != pType)) 2233var tlet = new TraceLoggingEventTypes(eventName, EventTags.None, new Type[] { msg.GetType() }); 3022m_rawManifest = CreateManifestAndDescriptors(this.GetType(), Name, this); 3181Type t = attr.GetType();
system\enum.cs (10)
626Type valueType = value.GetType(); 802return Enum.InternalFormat((RuntimeType)GetType(), GetValue()); 834Type thisType = this.GetType(); 835Type targetType = target.GetType(); 865return InternalFlagsFormat((RuntimeType)GetType(), GetValue()); 882if (!this.GetType().IsEquivalentTo(flag.GetType())) { 883throw new ArgumentException(Environment.GetResourceString("Argument_EnumTypeDoesNotMatch", flag.GetType(), this.GetType())); 894Type enumType = this.GetType();
system\exception.cs (1)
946return base.GetType();
system\globalization\cultureinfo.cs (8)
358this.m_isInherited = (this.GetType() != typeof(System.Globalization.CultureInfo)); 415this.m_isInherited = (this.GetType() != typeof(System.Globalization.CultureInfo)); 427if (obj.GetType().Assembly != typeof(System.Globalization.CultureInfo).Assembly) { 433obj.GetType(), 434container.GetType())); 471m_isInherited = (this.GetType() != typeof(System.Globalization.CultureInfo)); 475if (this.GetType().Assembly == typeof(System.Globalization.CultureInfo).Assembly) 566if (this.GetType() == typeof(System.Globalization.CultureInfo))
system\globalization\datetimeformat.cs (1)
897if (dtfi.Calendar.GetType() != typeof(GregorianCalendar)) {
system\globalization\datetimeformatinfo.cs (1)
2597if (this.Calendar.GetType() != typeof(JapaneseCalendar)) {
system\globalization\datetimeparse.cs (1)
3484if (dtfi.Calendar.GetType() != typeof(GregorianCalendar)) {
system\globalization\japanesecalendar.cs (1)
356throw new TypeInitializationException(this.GetType().FullName, e);
system\globalization\koreancalendar.cs (1)
104throw new TypeInitializationException(this.GetType().FullName, e);
system\globalization\taiwancalendar.cs (1)
101throw new TypeInitializationException(this.GetType().FullName, e);
system\io\binaryreader.cs (1)
75m_isMemoryStream = (m_stream.GetType() == typeof(MemoryStream));
system\io\filestream.cs (3)
2619if (this.GetType() != typeof(FileStream)) 2671if (this.GetType() != typeof(FileStream)) 2834if (this.GetType() != typeof(FileStream))
system\io\isolatedstorage\isolatedstorage.cs (1)
892bSer.Serialize(ms, o.GetType());
system\io\memorystream.cs (1)
450if (this.GetType() != typeof(MemoryStream))
system\io\stream.cs (1)
1209var methods = stream.GetType().GetMethods(BindingFlags.Public | BindingFlags.Instance);
system\io\streamreader.cs (4)
792if (this.GetType() != typeof(StreamReader)) 873if (this.GetType() != typeof(StreamReader)) 918if (this.GetType() != typeof(StreamReader)) 1106if (this.GetType() != typeof(StreamReader))
system\io\streamwriter.cs (9)
456if (this.GetType() != typeof(StreamWriter)) 518if (this.GetType() != typeof(StreamWriter)) 614if (this.GetType() != typeof(StreamWriter)) 692if (this.GetType() != typeof(StreamWriter)) 715if (this.GetType() != typeof(StreamWriter)) 738if (this.GetType() != typeof(StreamWriter)) 771if (this.GetType() != typeof(StreamWriter)) 794if (this.GetType() != typeof(StreamWriter)) 890String message = Environment.GetResourceString("IO_StreamWriterBufferedDataLost", streamWriter.stream.GetType().FullName, fileName, callStack);
system\marshalbyrefobject.cs (2)
83Type t = GetType(); 229return castType.IsAssignableFrom(this.GetType());
system\multicastdelegate.cs (3)
72DelegateSerializationHolder.GetDelegateSerializationInfo(info, this.GetType(), Target, method, targetIndex); 90DelegateSerializationHolder.DelegateEntry de = DelegateSerializationHolder.GetDelegateSerializationInfo(info, d.GetType(), d.Target, method, targetIndex++); 592RuntimeType reflectedType = GetType() as RuntimeType;
system\object.cs (2)
54return GetType().ToString(); 184Type t = GetType();
system\oleautbinder.cs (1)
53Type srcType = value.GetType();
system\reflection\assembly.cs (1)
744return base.GetType();
system\reflection\ConstructorInfo.cs (1)
113return base.GetType();
system\reflection\customattribute.cs (13)
495m_ctor = pca.GetType().GetConstructors(BindingFlags.Public | BindingFlags.Instance)[0]; 833m_argumentType = value.GetType(); 840if (value.GetType().IsEnum) 1775type = (RuntimeType)value.GetType(); 1999if (derivedAttributes[i].GetType() == attributeType) 2217if (caType == a.GetType() || a.GetType().IsSubclassOf(caType)) 2284if (caType == a.GetType() || a.GetType().IsSubclassOf(caType)) 2400if (caType == a.GetType() || a.GetType().IsSubclassOf(caType)) 2512if (caType == a.GetType() || a.GetType().IsSubclassOf(caType))
system\reflection\emit\customattributebuilder.cs (7)
158if (paramTC != Type.GetTypeCode(constructorArgs[i].GetType())) 159if (paramTC != TypeCode.Object || !ValidateType(constructorArgs[i].GetType())) 221Type.GetTypeCode(propertyValues[i].GetType()) != Type.GetTypeCode(propType)) 273Type.GetTypeCode(fieldValues[i].GetType()) != Type.GetTypeCode(fldType)) 436value.GetType())); 504Type ot = value == null ? typeof(String) : value is Type ? typeof(Type) : value.GetType(); 519typename = value.GetType().ToString();
system\reflection\emit\methodbuilderinstantiation.cs (1)
58public new Type GetType() { return base.GetType(); }
system\reflection\emit\modulebuilder.cs (1)
2201return new FieldToken(mr, field.GetType());
system\reflection\emit\typebuilder.cs (1)
414Type type = value.GetType();
system\reflection\emit\xxxontypebuilderinstantiation.cs (3)
71public new Type GetType() { return base.GetType(); } 168public new Type GetType() { return base.GetType(); } 269public new Type GetType() { return base.GetType(); }
system\reflection\eventinfo.cs (1)
201return base.GetType();
system\reflection\fieldinfo.cs (2)
197return base.GetType(); 534Name, m_declaringType, target.GetType()));
system\reflection\memberinfo.cs (1)
131return base.GetType();
system\reflection\methodbase.cs (1)
367Type _MethodBase.GetType() { return base.GetType(); }
system\reflection\methodinfo.cs (1)
102return base.GetType();
system\reflection\propertyinfo.cs (1)
164return base.GetType();
system\reflection\reflectioncontext.cs (1)
35return MapType(value.GetType().GetTypeInfo());
system\resources\resourcereader.cs (2)
846if (graph.GetType() != type) 847throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResType&SerBlobMismatch", type.FullName, graph.GetType().FullName));
system\resources\resourcewriter.cs (2)
530Type type = value.GetType(); 684if (sw.m_stream.GetType() == typeof(MemoryStream))
system\rttype.cs (11)
4113RuntimeType valueType = (RuntimeType)value.GetType(); 4165Type valueType = value.GetType(); 4385type = value.GetType(); 4431valueType = (RuntimeType)value.GetType(); 4443throw new ArgumentException(String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Arg_ObjObjEx"), value.GetType(), this)); 4473valueType = (RuntimeType)value.GetType(); 4485throw new ArgumentException(String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Arg_ObjObjEx"), value.GetType(), this)); 4554if (target != null && target.GetType().IsCOMObject) 5228argsType[i] = args[i].GetType(); 5667if (!Object.ReferenceEquals(paramType, aArgs[i].GetType())) 5677if (!Object.ReferenceEquals(retType, ret.GetType()))
system\runtime\compilerservices\AsyncMethodBuilder.cs (3)
123AsyncCausalityTracer.TraceOperationCreation(CausalityTraceLevel.Required, this.Task.Id, "Async: " + stateMachine.GetType().Name, 0); 169AsyncCausalityTracer.TraceOperationCreation(CausalityTraceLevel.Required, this.Task.Id, "Async: " + stateMachine.GetType().Name, 0); 986AsyncCausalityTracer.TraceOperationCreation(CausalityTraceLevel.Required, builtTask.Id, "Async: " + stateMachine.GetType().Name, 0);
system\runtime\compilerservices\YieldAwaitable.cs (1)
99if (syncCtx != null && syncCtx.GetType() != typeof(SynchronizationContext))
system\Runtime\InteropServices\ComEventsMethod.cs (4)
173if (_delegateWrappers[i].Delegate.GetType() == d.GetType()) { 196if (_delegateWrappers[i].Delegate.GetType() == d.GetType()) {
system\runtime\interopservices\marshal.cs (8)
205return SizeOfHelper(structure.GetType(), true); 1368if (val != null && val.GetType() == typeof(string)) 1554if (val != null && val.GetType() == typeof(string)) 2037if (obj.GetType().IsWindowsRuntimeObject) 2074if (obj.GetType().IsWindowsRuntimeObject) 2107if (!o.GetType().IsCOMObject) 2109if (o.GetType().IsWindowsRuntimeObject) 2113if (o.GetType() == t)
system\runtime\interopservices\registrationservices.cs (1)
982if (value == null || value.GetType() != typeof(string))
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (5)
497if (data.GetType().IsEnum) { 517if (_data.GetType() != expectedBoxedType) { 518throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", _data.GetType(), expectedBoxedType.Name), __HResults.TYPE_E_TYPEMISMATCH); 539if (dataArray == null || _data.GetType().GetElementType() != expectedArrayElementType) { 540throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", _data.GetType(), expectedArrayElementType.MakeArrayType().Name), __HResults.TYPE_E_TYPEMISMATCH);
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (5)
73return ((object)_value).GetType(); 157return ((object)_value).GetType(); 296Type type = obj.GetType(); 371Contract.Requires(obj.GetType().IsArray); 374Type type = obj.GetType().GetElementType();
system\runtime\interopservices\windowsruntime\icustompropertyprovider.cs (4)
57PropertyInfo propertyInfo = target.GetType().GetProperty( 89PropertyInfo propertyInfo = target.GetType().GetProperty( 107SystemTypeMarshaler.ConvertToNative(target.GetType(), pIndexedParamType); 223return _target.GetType();
system\runtime\remoting\activationservices.cs (6)
187&& !serverType.IsAssignableFrom(retObj.GetType())) 326RuntimeAssembly asm = (RuntimeAssembly)attr.GetType().Assembly; 362RuntimeAssembly asm = (RuntimeAssembly)attr.GetType().Assembly; 663asm = (RuntimeAssembly)prop.GetType().Assembly; 990Type attrType = attr.GetType(); 994if (attrType.Equals(retAttr[i].GetType()))
system\runtime\remoting\callcontext.cs (1)
635if (!currentPrincipal.GetType().IsSerializable)
system\runtime\remoting\channelservices.cs (1)
1099String chnlType = chnl.GetType().FullName;
system\runtime\remoting\message.cs (3)
3363if (parameterType != argValues[j].GetType()) 4410else if ((soapFault.Detail != null) && (soapFault.Detail.GetType() == typeof(String)) && (!(((String)soapFault.Detail).Length == 0))) 4745Message.DebugOut("MethodCall::FillHeaders: Value.GetClass: " + (value == null ? "NULL" : value.GetType().FullName) + "\n");
system\runtime\remoting\messagesmuggler.cs (3)
31(obj.GetType() == typeof(void)) || 32obj.GetType().IsPrimitive) 117Type elementType = array.GetType().GetElementType();
system\runtime\remoting\objref.cs (9)
437BCLDebug.Assert(o.GetType() == typeof(ObjRef), "this should be just an ObjRef"); 493if(o.GetType() == typeof(String)) 506if(o.GetType() == typeof(String)) 550if ((this.GetType() != typeof(ObjRef)) || IsObjRefLite()) 555typeOfTypeInfo = typeInfo.GetType(); 559typeOfChannelInfo = channelInfo.GetType(); 748bool fRefine = !(GetType() == typeof(ObjRef)); 975serverType = (RuntimeType)obj.GetType(); 1086objectRef.GetType() != orType)
system\runtime\remoting\remotingproxy.cs (2)
653Message.DebugOut("CheckCast for identity " + IdentityObject.GetType()); 677if (!fCastOK && typeInfo.GetType()==typeof(TypeInfo) && oRef.IsWellKnown() )
system\runtime\remoting\remotingservices.cs (2)
1066Contract.Assert(obj.GetType().IsContextful,"objType.IsContextful"); 2393ProxyAttribute proxyAttr = ActivationServices.GetProxyAttribute(mbro.GetType());
system\runtime\remoting\remotingsurrogateselector.cs (1)
154Message.DebugOut("RemotingSurrogate::GetObjectData obj.Type: " + obj.GetType().FullName + " \n");
system\runtime\remoting\serveridentity.cs (1)
137_srvType = obj.GetType();
system\runtime\remoting\stackbuildersink.cs (1)
420mbr.GetType().FullName));
system\runtime\serialization\formatter.cs (1)
137Type varType = data.GetType();
system\runtime\serialization\formatters\binary\binarycommonclasses.cs (4)
681argTypes[i] = args[i].GetType(); 949argTypes[i] = args[i].GetType(); 971else if (returnValue.GetType() == typeof(void)) 975returnType = returnValue.GetType();
system\runtime\serialization\formatters\binary\binaryconverter.cs (1)
485SerTrace.Log( "Converter", "FromString Exit "+((var == null)?"null":var+" var type "+((var==null)?"<null>":var.GetType().ToString())));
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
718SerTrace.Log( this, "WriteValue Entry ",((Enum)code).ToString()," " , ((value==null)?"<null>":value.GetType().ToString()) , " ",value);
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (5)
129objectType = obj.GetType(); 356SerTrace.Log( this, objectInfoId," InitMemberInfo name ",cache.memberNames[i],", type ",cache.memberTypes[i],", memberInfoType ",cache.memberInfos[i].GetType()); 415throw new SerializationException(Environment.GetResourceString("Serialization_SerMemberInfo",objMember.GetType())); 641SerTrace.Log( this, objectInfoId," InitMemberInfo name ",cache.memberNames[i],", type ",cache.memberTypes[i],", memberInfoType ",cache.memberInfos[i].GetType()); 887throw new SerializationException(Environment.GetResourceString("Serialization_SerMemberInfo",objMember.GetType()));
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (13)
191if (HasSurrogate(TopObject.GetType()) && topId != 0)//Not yet resolved 696SerTrace.Log( this, "ParseArray RegisterObject ",pr.PRobjectId," ",pr.PRnewObj.GetType()); 711SerTrace.Log( this, "ParseArray RegisterObject ",pr.PRobjectId," ",pr.PRnewObj.GetType()); 759SerTrace.Log( this, "ParseArray Jagged,Simple Array ",pr.PRnewObj.GetType()); 792SerTrace.Log( this, "ParseArray Rectangle Array ",pr.PRnewObj.GetType()," lower Bound ",pr.PRisLowerBound); 891IndexTraceMessage("ParseArrayMember Record Fixup "+objectPr.PRnewObj.GetType(), objectPr.PRindexMap); 900IndexTraceMessage("ParseArrayMember SetValue ObjectReference "+objectPr.PRnewObj.GetType()+" "+refObj, objectPr.PRindexMap); 951IndexTraceMessage("ParseArrayMember SetValue String "+objectPr.PRnewObj.GetType()+" "+pr.PRvalue, objectPr.PRindexMap); 988IndexTraceMessage("ParseArrayMember SetValue variant or Object "+objectPr.PRnewObj.GetType()+" var "+var+" indexMap ", objectPr.PRindexMap); 1011IndexTraceMessage("ParseArrayMember SetValue Primitive "+objectPr.PRnewObj.GetType()+" var: "+var+" varType "+var.GetType(), objectPr.PRindexMap); 1014SerTrace.Log( this, "ParseArrayMember SetValue Primitive predefined array "+objectPr.PRobjectA.GetType()); 1099SerTrace.Log( this, "AddValue 2 ",pr.PRnewObj," is value type ",pr.PRnewObj.GetType().IsValueType);
system\runtime\serialization\formatters\binary\binaryobjectwriter.cs (1)
1396type = obj.GetType();
system\runtime\serialization\formatters\sertrace.cs (2)
90messages[0] = (messages[0].GetType()).Name+" "; 139messages[0] = (messages[0].GetType()).Name+" ";
system\runtime\serialization\formatterservices.cs (1)
365BCLDebug.Trace("SER", "[PopulateObjectMembers]\tType:", obj.GetType(), "\tMember:",
system\runtime\serialization\objectclonehelper.cs (4)
47objectType = serObj.GetType(); 123si = new SerializationInfo(serObj.GetType(), s_converter); 148MemberInfo[] mi = FormatterServices.GetSerializableMembers(serObj.GetType()); 162serObj.GetType(),
system\runtime\serialization\objectmanager.cs (10)
262throw new SerializationException(String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Serialization_NotCyclicallyReferenceableSurrogate"), surrogate.GetType().FullName)); 531si.UpdateValue((String)fixupInfo, holderValue, holderValue.GetType()); 761selectorType = obj.GetType(); 789BCLDebug.Trace("SER", "[ObjectManager.RegisterObject]Adding a new object holder for ", objectID, "\tValueType: ", obj.GetType()); 869RuntimeType t = (RuntimeType)obj.GetType(); 1024throw new SerializationException(Environment.GetResourceString("Serialization_InvalidType", member.GetType().ToString())); 1125SerializationEvents cache = SerializationEventsCache.GetSerializationEventsForType(obj.GetType()); 1131SerializationEvents cache = SerializationEventsCache.GetSerializationEventsForType(obj.GetType()); 1138SerializationEvents cache = SerializationEventsCache.GetSerializationEventsForType(obj.GetType()); 1438return (m_surrogate == null || m_surrogate.GetType() != typeof(SurrogateForCyclicalReference));
system\runtime\serialization\safeserializationmanager.cs (7)
229if (!serializedState.GetType().IsSerializable) 230throw new ArgumentException(Environment.GetResourceString("Serialization_NonSerType", serializedState.GetType(), serializedState.GetType().Assembly.FullName)); 327Contract.Requires(typeof(ISerializable).IsAssignableFrom(serializedObject.GetType())); 328Contract.Requires(serializedObject.GetType().IsAssignableFrom(info.ObjectType)); 346info.AddValue(RealTypeSerializationName, serializedObject.GetType(), typeof(RuntimeType)); 449SerializationEvents cache = SerializationEventsCache.GetSerializationEventsForType(m_realObject.GetType());
system\runtime\serialization\serializationinfo.cs (1)
313AddValue(name, value, value.GetType());
system\runtime\serialization\serializationobjectmanager.cs (2)
37SerializationEvents cache = SerializationEventsCache.GetSerializationEventsForType(obj.GetType()); 63SerializationEvents cache = SerializationEventsCache.GetSerializationEventsForType(obj.GetType());
system\security\accesscontrol\directoryobjectsecurity.cs (2)
484if ( !this.AccessRuleType.IsAssignableFrom(rule.GetType()) ) 496if ( !this.AuditRuleType.IsAssignableFrom(rule.GetType()) )
system\security\accesscontrol\filesecurity.cs (2)
510AuthorizationRuleCollection rules = GetAccessRules(true, true, rule.IdentityReference.GetType()); 555AuthorizationRuleCollection rules = GetAccessRules(true, true, rule.IdentityReference.GetType());
system\security\accesscontrol\objectsecurity.cs (2)
696if ( !this.AccessRuleType.IsAssignableFrom(rule.GetType()) ) 723if ( !this.AuditRuleType.IsAssignableFrom(rule.GetType()) )
system\security\claims\ClaimsPrincipal.cs (1)
445if (identity.GetType() == typeof(WindowsIdentity))
system\security\codeaccesspermission.cs (13)
170XMLUtil.AddClassAttribute( root, perm.GetType(), permname ); 173Contract.Assert( perm.GetType().FullName.Equals( permname ), "Incorrect class name passed in! Was: " + permname + " Should be " + perm.GetType().FullName); 219if ((perm == null) || (perm.GetType() != this.GetType())) { 263Contract.Assert( grant == null || grant.GetType().Equals( this.GetType() ), "CheckDemand not defined for permissions of different type" ); 269Contract.Assert( permitted == null || permitted.GetType().Equals( this.GetType() ), "CheckPermitOnly not defined for permissions of different type" ); 275Contract.Assert( denied == null || denied.GetType().Equals( this.GetType() ), "CheckDeny not defined for permissions of different type" ); 282Contract.Assert( asserted == null || asserted.GetType().Equals( this.GetType() ), "CheckPermitOnly not defined for permissions of different type" );
system\security\codeaccesssecurityengine.cs (2)
782throw new PolicyException(Environment.GetResourceString("Policy_NullHostGrantSet", securityManager.GetType().FullName)); 805throw new PolicyException(Environment.GetResourceString("Policy_GrantSetDoesNotMatchDomain", securityManager.GetType().FullName));
system\security\cryptography\cryptostream.cs (3)
162if (this.GetType() != typeof(CryptoStream)) 323if (this.GetType() != typeof(CryptoStream)) 587if (this.GetType() != typeof(CryptoStream))
system\security\cryptography\utils.cs (2)
587oidValue = CryptoConfig.MapNameToOID(hashAlg.GetType().ToString(), group); 1035Type t = rsaKey.GetType();
system\security\cryptography\x509certificates\x509certificate.cs (1)
418return GetType().FullName;
system\security\framesecuritydescriptor.cs (4)
332throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), null, permSet, SecurityRuntime.GetMethodInfo(rmh), demand, demand); 347throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), null, permSet, SecurityRuntime.GetMethodInfo(rmh), demand, demand); 360throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), permSet, null, SecurityRuntime.GetMethodInfo(rmh), demand, demand); 372throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), permSet, null, SecurityRuntime.GetMethodInfo(rmh), demand, demand);
system\security\namedpermissionset.cs (1)
139Contract.Assert( this.GetType().FullName.Equals( "System.Security.NamedPermissionSet" ), "Class name changed!" );
system\security\permissions\environmentpermission.cs (3)
236Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 252Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 295Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\filedialogpermission.cs (3)
105throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 142throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 181throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\fileiopermission.cs (3)
643throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 669throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 721throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\gacidentitypermission.cs (3)
79throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 88throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 97throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\hostprotectionpermission.cs (10)
224if(this.GetType() != target.GetType()) 225throw new ArgumentException( Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) ); 233if(this.GetType() != target.GetType()) 234throw new ArgumentException( Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) ); 243if(this.GetType() != target.GetType()) 244throw new ArgumentException( Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) ); 264SecurityElement esd = CodeAccessPermission.CreatePermissionElement( this, this.GetType().FullName );
system\security\permissions\isolatedstoragefilepermission.cs (3)
44Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 95Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 109Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\isolatedstoragepermission.cs (1)
202return ToXml ( this.GetType().FullName );
system\security\permissions\keycontainerpermission.cs (3)
449throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 484throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 506throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\principalpermission.cs (7)
188if ((perm == null) || (perm.GetType() != this.GetType())) { 260Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 277Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 379Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 523XMLUtil.AddClassAttribute( root, this.GetType(), "System.Security.Permissions.PrincipalPermission" ); 526Contract.Assert( this.GetType().FullName.Equals( "System.Security.Permissions.PrincipalPermission" ), "Class name changed!" );
system\security\permissions\publisheridentitypermission.cs (3)
148throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 182throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 221throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\reflectionpermission.cs (3)
177Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 217Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 231Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\registrypermission.cs (3)
254throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 279Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 331Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\securitypermission.cs (3)
165Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 176Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 197Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\siteidentitypermission.cs (3)
187throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 221throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 261throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\strongnameidentitypermission.cs (3)
286throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 322throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 362throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\uipermission.cs (3)
262Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 278Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 301Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\urlidentitypermission.cs (3)
218throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 252throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 292throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\zoneidentitypermission.cs (3)
222throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 233throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 247throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissionset.cs (8)
469Type perm_type = perm.GetType(); 1761throw new ArgumentException(String.Format( null, Environment.GetResourceString( "Argument_InvalidXMLElement" ), "PermissionSet", this.GetType().FullName) ); 1795Contract.Assert( objectToInsert.GetType().Module.Assembly == System.Reflection.Assembly.GetExecutingAssembly(), 1863throw new ArgumentException(String.Format( null, Environment.GetResourceString( "Argument_InvalidXMLElement" ), "PermissionSet", this.GetType().FullName) ); 1902Contract.Assert( objectToInsert.GetType().Module.Assembly == System.Reflection.Assembly.GetExecutingAssembly(), 2184elTrunk.AddAttribute( "class", this.GetType().FullName); 2221Contract.Assert( this.GetType().FullName.Equals( "System.Security.PermissionSet" ), "Class name changed! Was: System.Security.PermissionSet Should be:" + this.GetType().FullName);
system\security\permissiontoken.cs (3)
190return s_theTokenFactory.GetToken(perm.GetType(), perm); 283if (perm.GetType().Module.Assembly == Assembly.GetExecutingAssembly() && 462((PermissionToken)tok).m_strTypeName = perm.GetType().AssemblyQualifiedName;
system\security\policy\allmembershipcondition.cs (2)
65System.Security.Util.XMLUtil.AddClassAttribute( root, this.GetType(), "System.Security.Policy.AllMembershipCondition" ); 68Contract.Assert( this.GetType().FullName.Equals( "System.Security.Policy.AllMembershipCondition" ), "Class name changed!" );
system\security\policy\applicationdirectory.cs (1)
82Contract.Assert( this.GetType().FullName.Equals( "System.Security.Policy.ApplicationDirectory" ), "Class name changed!" );
system\security\policy\applicationdirectorymembershipcondition.cs (2)
104System.Security.Util.XMLUtil.AddClassAttribute( root, this.GetType(), "System.Security.Policy.ApplicationDirectoryMembershipCondition" ); 107BCLDebug.Assert( this.GetType().FullName.Equals( "System.Security.Policy.ApplicationDirectoryMembershipCondition" ), "Class name changed!" );
system\security\policy\assemblyevidencefactory.cs (1)
236throw new InvalidOperationException(Environment.GetResourceString("Policy_NullHostEvidence", securityManager.GetType().FullName, targetAssembly.FullName));
system\security\policy\codegroup.cs (8)
317return this.GetType().FullName; 333System.Security.Util.XMLUtil.AddClassAttribute( e, this.GetType(), policyClassName ); 336Contract.Assert( this.GetType().FullName.Equals( policyClassName ), "Incorrect class name passed in! Was: " + policyClassName + " Should be " + this.GetType().FullName); 450throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidXMLElement" ), "IMembershipCondition", this.GetType().FullName ) ); 717if (that != null && this.GetType().Equals( that.GetType() )) 778return GetType().GetHashCode();
system\security\policy\evidence.cs (11)
359if (!id.GetType().IsSerializable) 381if (!id.GetType().IsSerializable) 658return adapter == null ? evidence.GetType() : adapter.EvidenceType; 730Contract.Assert(original.GetType() == duplicate.GetType() || original.GetType() == typeof(LegacyEvidenceList)); 736throw new InvalidOperationException(Environment.GetResourceString("Policy_DuplicateEvidence", duplicate.GetType().FullName)); 819Type hostEvidenceType = hostEnumerator.Current.GetType(); 1328if (!type.IsAssignableFrom(hostEvidence.GetType())) 1330string hostType = AppDomain.CurrentDomain.HostSecurityManager.GetType().FullName; 1331string recievedType = hostEvidence.GetType().FullName;
system\security\policy\evidencebase.cs (7)
38if (!GetType().IsSerializable) 92Contract.Assert(legacyEvidence.GetType() != typeof(EvidenceBase), "Attempt to wrap an EvidenceBase in a LegacyEvidenceWrapper"); 93Contract.Assert(legacyEvidence.GetType().IsSerializable, "legacyEvidence.GetType().IsSerializable"); 105get { return m_legacyEvidence.GetType(); } 161return adapter == null ? m_legacyEvidenceList[0].GetType() : adapter.EvidenceType; 168Contract.Assert(m_legacyEvidenceList.Count == 0 || EvidenceType == evidence.GetType() || (evidence is LegacyEvidenceWrapper && (evidence as LegacyEvidenceWrapper).EvidenceType == EvidenceType), 170Contract.Assert(evidence.GetType() != typeof(LegacyEvidenceList),
system\security\policy\gac.cs (1)
58SecurityElement elem = new SecurityElement( this.GetType().FullName );
system\security\policy\gacmembershipcondition.cs (2)
75System.Security.Util.XMLUtil.AddClassAttribute( root, this.GetType(), this.GetType().FullName );
system\security\policy\hash.cs (2)
295byte[] hashValue = GenerateHash(hashAlg.GetType()); 500BCLDebug.Assert(this.GetType().FullName.Equals("System.Security.Policy.Hash"), "Class name changed!");
system\security\policy\hashmembershipcondition.cs (8)
170XMLUtil.AddClassAttribute(root, this.GetType(), "System.Security.Policy.HashMembershipCondition"); 173Contract.Assert(this.GetType().FullName.Equals("System.Security.Policy.HashMembershipCondition"), "Class name changed!"); 179root.AddAttribute(s_tagHashAlgorithm, HashAlgorithm.GetType().FullName); 207this.m_hashAlg.GetType() == that.m_hashAlg.GetType()) { 230int accumulator = this.m_hashAlg != null ? this.m_hashAlg.GetType().GetHashCode() : 0; 242return Environment.GetResourceString("Hash_ToString", m_hashAlg.GetType().AssemblyQualifiedName, Hex.EncodeHexString(HashValue)); 257throw new ArgumentException(Environment.GetResourceString("Argument_InvalidXMLElement", s_tagHashValue, this.GetType().FullName));
system\security\policy\permissionrequestevidence.cs (1)
94Contract.Assert( this.GetType().FullName.Equals( "System.Security.Policy.PermissionRequestEvidence" ), "Class name changed!" );
system\security\policy\policylevel.cs (2)
638throw new ArgumentException(Environment.GetResourceString("Argument_InvalidXMLElement", "CodeGroup", this.GetType().FullName)); 642throw new ArgumentException(Environment.GetResourceString("Argument_InvalidXMLElement", "CodeGroup", this.GetType().FullName));
system\security\policy\policystatement.cs (2)
368throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidXMLElement" ), "PolicyStatement", this.GetType().FullName ) ); 446throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidXMLElement" ), "PolicyStatement", this.GetType().FullName ) );
system\security\policy\publisher.cs (1)
117Contract.Assert( this.GetType().FullName.Equals( "System.Security.Policy.Publisher" ), "Class name changed!" );
system\security\policy\publishermembershipcondition.cs (2)
166System.Security.Util.XMLUtil.AddClassAttribute( root, this.GetType(), "System.Security.Policy.PublisherMembershipCondition" ); 169Contract.Assert( this.GetType().FullName.Equals( "System.Security.Policy.PublisherMembershipCondition" ), "Class name changed!" );
system\security\policy\site.cs (1)
106Contract.Assert( this.GetType().FullName.Equals( "System.Security.Policy.Site" ), "Class name changed!" );
system\security\policy\sitemembershipcondition.cs (2)
149System.Security.Util.XMLUtil.AddClassAttribute( root, this.GetType(), "System.Security.Policy.SiteMembershipCondition" ); 152Contract.Assert( this.GetType().FullName.Equals( "System.Security.Policy.SiteMembershipCondition" ), "Class name changed!" );
system\security\policy\strongnamemembershipcondition.cs (2)
219System.Security.Util.XMLUtil.AddClassAttribute( root, this.GetType(), "System.Security.Policy.StrongNameMembershipCondition" ); 222Contract.Assert( this.GetType().FullName.Equals( "System.Security.Policy.StrongNameMembershipCondition" ), "Class name changed!" );
system\security\policy\url.cs (1)
99Contract.Assert( this.GetType().FullName.Equals( "System.Security.Policy.Url" ), "Class name changed!" );
system\security\policy\urlmembershipcondition.cs (2)
153System.Security.Util.XMLUtil.AddClassAttribute( root, this.GetType(), "System.Security.Policy.UrlMembershipCondition" ); 156Contract.Assert( this.GetType().FullName.Equals( "System.Security.Policy.UrlMembershipCondition" ), "Class name changed!" );
system\security\policy\zone.cs (1)
130Contract.Assert( this.GetType().FullName.Equals( "System.Security.Policy.Zone" ), "Class name changed!" );
system\security\policy\zonemembershipcondition.cs (2)
164System.Security.Util.XMLUtil.AddClassAttribute( root, this.GetType(), "System.Security.Policy.ZoneMembershipCondition" ); 167Contract.Assert( this.GetType().FullName.Equals( "System.Security.Policy.ZoneMembershipCondition" ), "Class name changed!" );
system\security\policymanager.cs (1)
217if (codeGroup.GetType().Assembly != typeof(UnionCodeGroup).Assembly)
system\security\principal\ircollection.cs (5)
197Type type = Identities[i].GetType(); 260Type type = id.GetType(); 323if ( id.GetType() != targetType ) 335if ( id.GetType() != targetType ) 357Type type = id.GetType();
system\security\principal\ntaccount.cs (1)
189if (id.GetType() != targetType)
system\security\principal\sid.cs (1)
1094if (id.GetType() != targetType)
system\security\securityexception.cs (5)
98message = String.Format(CultureInfo.InvariantCulture, GetResString("Security_Generic"), demand.GetType().AssemblyQualifiedName ); 100message = String.Format(CultureInfo.InvariantCulture, GetResString("Security_Generic"), permThatFailed.GetType().AssemblyQualifiedName); 279m_typeOfPermissionThatFailed = permThatFailed.GetType(); 313m_typeOfPermissionThatFailed = permThatFailed.GetType(); 362m_typeOfPermissionThatFailed = ob.GetType();
system\security\util\xmlutil.cs (1)
51return NewPermissionElement (ip.GetType ().FullName) ;
system\stubhelpers.cs (6)
1028Type elementType = pManagedHome.GetType().GetElementType(); 1218int allocSize = Marshal.SizeOfHelper(pManagedHome.GetType(), false); 1230layoutType = pManagedHome.GetType(); 1248if (pManagedHome.GetType().IsArray) 1268else if (pManagedHome.GetType().IsLayoutSequential || pManagedHome.GetType().IsExplicitLayout)
system\text\asciiencoding.cs (2)
437this.EncodingName, encoder.Fallback.GetType())); 575this.EncodingName, encoder.Fallback.GetType()));
system\text\dbcscodepageencoding.cs (2)
559this.EncodingName, encoder.Fallback.GetType())); 668this.EncodingName, encoder.Fallback.GetType()));
system\text\decodernls.cs (1)
42Environment.GetResourceString("NotSupported_TypeCannotDeserialized"), this.GetType()));
system\text\encodernls.cs (1)
45Environment.GetResourceString("NotSupported_TypeCannotDeserialized"), this.GetType()));
system\text\encoding.cs (3)
1599EncodingName, EncoderFallback.GetType()), "bytes"); 1624EncodingName, DecoderFallback.GetType()), "chars"); 2139encoder.Encoding.EncodingName, encoder.Fallback.GetType()));
system\text\unicodeencoding.cs (2)
480this.EncodingName, encoder.Fallback.GetType())); 764this.EncodingName, encoder.Fallback.GetType()));
system\text\utf32encoding.cs (2)
458this.EncodingName, encoder.Fallback.GetType())); 588this.EncodingName, encoder.Fallback.GetType()));
system\text\utf8encoding.cs (2)
495this.EncodingName, encoder.Fallback.GetType())); 883this.EncodingName, encoder.Fallback.GetType()));
system\threading\asynclocal.cs (1)
139Contract.Assert(asyncLocalValueMap == Empty || asyncLocalValueMap.GetType() != typeof(EmptyAsyncLocalValueMap));
system\threading\overlapped.cs (2)
218if (m_userObject.GetType() == typeof(Object[])) 241if (m_userObject.GetType() == typeof(Object[]))
system\threading\synchronizationcontext.cs (1)
98Type type = this.GetType();
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
537if (m_pair.CompletionRequested) throw new InvalidOperationException(GetType().Name);
system\threading\Tasks\Task.cs (1)
2983if (syncCtx != null && syncCtx.GetType() != typeof(SynchronizationContext))
system\threading\Tasks\TaskContinuation.cs (1)
653if (ctx != null && ctx.GetType() != typeof(SynchronizationContext)) return false;
system\tuple.cs (8)
119throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 209throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 314throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 430throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 557throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 695throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 844throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 1008throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other");
system\type.cs (6)
350return new RuntimeTypeHandle((RuntimeType)o.GetType()); 1491Type valueType = value.GetType(); 1544Type valueType = value.GetType(); 1669return IsAssignableFrom(o.GetType()); 1775cls[i] = args[i].GetType(); 1841return base.GetType();
system\typedreference.cs (1)
41RuntimeType targetType = (RuntimeType)target.GetType();
system\valuetype.cs (4)
27BCLDebug.Perf(false, "ValueType::Equals is not fast. "+this.GetType().FullName+" should override Equals(Object)"); 31RuntimeType thisType = (RuntimeType)this.GetType(); 32RuntimeType thatType = (RuntimeType)obj.GetType(); 95return this.GetType().ToString();
PresentationBuildTasks (7)
Base\System\IO\Packaging\Compoundfile\versionPair.cs (2)
267if (obj.GetType() != GetType())
Framework\System\Windows\Markup\BamlRecords.cs (2)
4953|| (KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(propertyMember.GetType())), 4996KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(PropertyMember.GetType( )) )
Framework\System\Windows\Markup\TemplateXamlParser.cs (1)
1762_previousXamlParser.GetType() != typeof(StyleXamlParser); }
Framework\System\Windows\Markup\XamlReaderHelper.cs (2)
1195baseType = dynamicObject.GetType(); 5203_xmlReader.GetType().FullName);
PresentationCore (212)
Core\CSharp\MS\Internal\Ink\ExtendedProperty.cs (5)
53if (obj == null || obj.GetType() != GetType()) 62Type type1 = this.Value.GetType(); 63Type type2 = that.Value.GetType(); 191Type type = _value.GetType();
Core\CSharp\MS\Internal\Ink\ExtendedPropertyCollection.cs (2)
37if (o == null || o.GetType() != GetType())
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (10)
77interopTypeInfo = SerializationHelper.ConvertToVarEnum(attribute.Value.GetType(), true); 840if (!(value.GetType() == typeof(int))) 848if (value.GetType() != typeof(DrawingFlags)) 855Type valueType = value.GetType(); 873Type t = value.GetType(); 898if ( value.GetType() != typeof(bool)) 905if ( value.GetType() != typeof(double) ) 929if ( value.GetType() != typeof(byte) ) 942if ( value.GetType() != typeof(byte[]) ) 950VarEnum varEnum = SerializationHelper.ConvertToVarEnum(value.GetType(), true);
Core\CSharp\MS\Internal\Ink\StrokeFIndices.cs (2)
102if (obj == null || GetType() != obj.GetType())
Core\CSharp\MS\Internal\Ink\StrokeIntersection.cs (2)
115if (obj == null || GetType() != obj.GetType())
Core\CSharp\MS\Internal\Media\VisualTreeUtils.cs (3)
192Debug.Fail(String.Format("Unhandled HitTestResult type '{0}'", result.GetType().Name)); 271throw new System.InvalidOperationException(SR.Get(SRID.Visual_NotAVisual, element.GetType())); 301element != null ? element.GetType() : null));
Core\CSharp\System\IO\Packaging\PackageStore.cs (1)
204if (package != null && package.GetType() != typeof(ZipPackage))
Core\CSharp\System\Windows\DataObject.cs (4)
1847|| (data != null && data.GetType().IsSerializable)) 2422|| (data != null && data.GetType().IsSerializable)); 2822SetData(data.GetType(), data); 3939SetData(data.GetType(), data);
Core\CSharp\System\Windows\Diagnostics\XamlSourceInfoHelper.cs (1)
116if (obj is string || obj.GetType().IsValueType)
Core\CSharp\System\Windows\FreezableCollection.cs (3)
543throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 689throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "T"));
Core\CSharp\System\Windows\Generated\ContentElement.cs (6)
85throw new ArgumentException(SR.Get(SRID.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 93throw new ArgumentException(SR.Get(SRID.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock"); 104throw new InvalidOperationException(SR.Get(SRID.IAnimatable_CantAnimateSealedDO, dp, this.GetType())); 157throw new ArgumentException(SR.Get(SRID.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 164throw new ArgumentException(SR.Get(SRID.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation"); 174throw new InvalidOperationException(SR.Get(SRID.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
Core\CSharp\system\windows\generated\TextDecorationCollection.cs (3)
440throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 532throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextDecoration"));
Core\CSharp\System\Windows\Generated\UIElement.cs (6)
85throw new ArgumentException(SR.Get(SRID.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 93throw new ArgumentException(SR.Get(SRID.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock"); 104throw new InvalidOperationException(SR.Get(SRID.IAnimatable_CantAnimateSealedDO, dp, this.GetType())); 157throw new ArgumentException(SR.Get(SRID.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 164throw new ArgumentException(SR.Get(SRID.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation"); 174throw new InvalidOperationException(SR.Get(SRID.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
Core\CSharp\System\Windows\Ink\DrawingAttributes.cs (3)
514if (o == null || o.GetType() != this.GetType()) 721Type t = propertyData.GetType();
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (3)
393Type classType = targetElement.GetType(); 441Type classType = targetElement.GetType(); 666Type classType = sender.GetType();
Core\CSharp\System\Windows\Input\Command\RoutedCommand.cs (2)
151throw new InvalidOperationException(SR.Get(SRID.Invalid_IInputElement, target.GetType())); 196throw new InvalidOperationException(SR.Get(SRID.Invalid_IInputElement, target.GetType()));
Core\CSharp\System\Windows\Input\FocusChangedEventArgs.cs (2)
32throw new InvalidOperationException(SR.Get(SRID.Invalid_IInputElement, oldFocus.GetType())); 35throw new InvalidOperationException(SR.Get(SRID.Invalid_IInputElement, newFocus.GetType()));
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (1)
166throw new InvalidOperationException(SR.Get(SRID.Invalid_IInputElement, element.GetType()));
Core\CSharp\System\Windows\Input\MouseDevice.cs (2)
366throw new InvalidOperationException(SR.Get(SRID.Invalid_IInputElement, eltDO.GetType())); 635throw new InvalidOperationException(SR.Get(SRID.Invalid_IInputElement, relativeTo.GetType()));
Core\CSharp\System\Windows\Input\TouchDevice.cs (1)
383throw new ArgumentException(SR.Get(SRID.Invalid_IInputElement, element.GetType()), "element");
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (3)
498target.GetType().FullName, 499((AnimationClock)sender).Timeline.GetType().FullName), 998d.GetType().FullName));
Core\CSharp\System\Windows\Media\Animation\Clock.cs (1)
601timeline.GetType().Name));
Core\CSharp\System\Windows\Media\Animation\Generated\Animatable.cs (6)
92throw new ArgumentException(SR.Get(SRID.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 100throw new ArgumentException(SR.Get(SRID.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock"); 111throw new InvalidOperationException(SR.Get(SRID.IAnimatable_CantAnimateSealedDO, dp, this.GetType())); 164throw new ArgumentException(SR.Get(SRID.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 171throw new ArgumentException(SR.Get(SRID.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation"); 181throw new InvalidOperationException(SR.Get(SRID.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\Int16Animation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\Int32Animation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\Int64Animation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\TimelineCollection.cs (3)
448throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 540throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Timeline"));
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimation.cs (2)
329this.GetType(), 340this.GetType(),
Core\CSharp\System\Windows\Media\CharacterMetricsDictionary.cs (3)
224Type elementType = array.GetType().GetElementType(); 527throw new ArgumentException(SR.Get(SRID.CannotConvertType, key.GetType(), "int"), "key"); 543throw new ArgumentException(SR.Get(SRID.CannotConvertType, typeof(CharacterMetrics), value.GetType()));
Core\CSharp\System\Windows\Media\CultureSpecificStringDictionary.cs (3)
190Type elementType = array.GetType().GetElementType(); 336throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(string)), "value"); 350throw new ArgumentException(SR.Get(SRID.CannotConvertType, key.GetType(), typeof(XmlLanguage)), "key");
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (3)
447throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 539throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "BitmapEffect"));
Core\CSharp\System\Windows\Media\Effects\Generated\ShaderEffect.cs (1)
176return (Freezable)Activator.CreateInstance(this.GetType());
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (2)
903Type t = value.GetType(); 987Type t = value.GetType();
Core\CSharp\System\Windows\Media\FamilyMapCollection.cs (2)
111Type elementType = array.GetType().GetElementType(); 388throw new ArgumentException(SR.Get(SRID.CannotConvertType, obj.GetType(), typeof(FontFamilyMap)));
Core\CSharp\System\Windows\Media\FamilyTypefaceCollection.cs (2)
379throw new ArgumentException(SR.Get(SRID.CannotConvertType, obj.GetType(), typeof(FamilyTypeface))); 392Type elementType = array.GetType().GetElementType();
Core\CSharp\System\Windows\Media\FontFamilyConverter.cs (1)
91if ((o != null) && (o.GetType() == typeof(string)))
Core\CSharp\System\Windows\Media\Generated\DoubleCollection.cs (3)
414throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 490throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "double"));
Core\CSharp\System\Windows\Media\Generated\DrawingCollection.cs (3)
461throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 553throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Drawing"));
Core\CSharp\System\Windows\Media\Generated\GeneralTransformCollection.cs (3)
449throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 541throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "GeneralTransform"));
Core\CSharp\System\Windows\Media\Generated\GeometryCollection.cs (3)
461throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 553throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Geometry"));
Core\CSharp\System\Windows\Media\Generated\GradientStopCollection.cs (3)
449throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 541throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "GradientStop"));
Core\CSharp\System\Windows\Media\Generated\Int32Collection.cs (3)
414throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 490throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "int"));
Core\CSharp\System\Windows\Media\Generated\PathFigureCollection.cs (3)
450throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 542throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "PathFigure"));
Core\CSharp\System\Windows\Media\Generated\PathSegmentCollection.cs (3)
449throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 541throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "PathSegment"));
Core\CSharp\System\Windows\Media\Generated\PointCollection.cs (3)
414throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 490throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Point"));
Core\CSharp\System\Windows\Media\Generated\TextEffectCollection.cs (3)
449throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 541throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextEffect"));
Core\CSharp\System\Windows\Media\Generated\TransformCollection.cs (3)
461throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 553throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Transform"));
Core\CSharp\System\Windows\Media\Generated\VectorCollection.cs (3)
414throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 490throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Vector"));
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadata.cs (2)
1430if (rating != null && rating.GetType() == typeof(ushort)) 1481if (fileTime != null && fileTime.GetType() == typeof(System.Runtime.InteropServices.ComTypes.FILETIME))
Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (2)
281Type type = value.GetType(); 368Type type = value.GetType();
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (2)
1296elementType = exemplar.GetType(); 1323elementType = exemplar.GetType();
Core\CSharp\System\Windows\Media\Visual.cs (2)
2023hitTestParameters.GetType().Name, this.GetType().Name));
Core\CSharp\System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (3)
445throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 537throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "GeneralTransform3D"));
Core\CSharp\System\Windows\Media3D\Generated\MaterialCollection.cs (3)
457throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 549throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Material"));
Core\CSharp\System\Windows\Media3D\Generated\Model3DCollection.cs (3)
457throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 549throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Model3D"));
Core\CSharp\System\Windows\Media3D\Generated\Point3DCollection.cs (3)
410throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 486throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Point3D"));
Core\CSharp\System\Windows\Media3D\Generated\Transform3DCollection.cs (3)
457throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 549throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Transform3D"));
Core\CSharp\System\Windows\Media3D\Generated\Vector3DCollection.cs (3)
410throw new ArgumentException(SR.Get(SRID.Collection_BadDestArray, this.GetType().Name), e); 486throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Vector3D"));
Core\CSharp\System\Windows\Media3D\Generated\Visual3D.cs (6)
92throw new ArgumentException(SR.Get(SRID.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 100throw new ArgumentException(SR.Get(SRID.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock"); 111throw new InvalidOperationException(SR.Get(SRID.IAnimatable_CantAnimateSealedDO, dp, this.GetType())); 164throw new ArgumentException(SR.Get(SRID.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 171throw new ArgumentException(SR.Get(SRID.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation"); 181throw new InvalidOperationException(SR.Get(SRID.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
Core\CSharp\System\Windows\Media3D\ModelVisual3D.cs (3)
103throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, typeof(Visual3D).Name)); 116throw new System.InvalidOperationException(SR.Get(SRID.AddText_Invalid, this.GetType().Name));
Core\CSharp\System\Windows\Media3D\Viewport3DVisual.cs (1)
517throw new NotSupportedException(SR.Get(SRID.HitTest_Invalid, typeof(GeometryHitTestParameters).Name, this.GetType().Name));
Core\CSharp\System\Windows\Media3D\Visual3D.cs (2)
681hitTestParameters.GetType().Name, this.GetType().Name));
Core\CSharp\System\Windows\Media3D\Visual3DCollection.cs (2)
485throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, "Visual3D"));
Core\CSharp\System\Windows\RoutedEvent.cs (1)
85Type handlerType = handler.GetType();
Core\CSharp\System\Windows\UIElement.cs (6)
689throw new InvalidOperationException(SR.Get(SRID.UIElement_Layout_PositiveInfinityReturned, this.GetType().FullName)); 693throw new InvalidOperationException(SR.Get(SRID.UIElement_Layout_NaNReturned, this.GetType().FullName)); 819(parent == null ? "" : parent.GetType().FullName), 820this.GetType().FullName)); 1939throw new ArgumentException(SR.Get(SRID.Invalid_IInputElement, d.GetType())); 1979throw new ArgumentException(SR.Get(SRID.Invalid_IInputElement, d.GetType()));
Shared\MS\Internal\SecurityHelper.cs (4)
581if (permissionSetAppDomain.GetPermission(siteOfOriginReadPermission.GetType()) != null) 583permissionSetAppDomain.RemovePermission(siteOfOriginReadPermission.GetType()); 727if (uri.GetType().IsSubclassOf(typeof(Uri))) 749if (uri.GetType().IsSubclassOf(typeof(Uri)))
Shared\MS\Utility\PerfService.cs (1)
51Type type = key.GetType();
PresentationFramework (492)
src\Framework\MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (2)
250_selectionProcessor = _locatorManager.GetSelectionProcessor(attachedAnchor.GetType()); 260Debug.Assert(_selectionProcessor != null, SR.Get(SRID.NoProcessorForSelectionType, attachedAnchor.GetType()));
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
472throw new ArgumentException(SR.Get(SRID.WrongSelectionType), "selection: type=" + selection.GetType().ToString()); 478throw new ArgumentException(SR.Get(SRID.WrongSelectionType), "selection: type=" + selection.GetType().ToString()); 499throw new ArgumentException(SR.Get(SRID.WrongSelectionType), "selection: type=" + selection.GetType().ToString());
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (3)
380SelectionProcessor selProcessor = GetSelectionProcessor(selection.GetType()); 757SelectionProcessor selProcessor = GetSelectionProcessor(selection.GetType()); 1084SelectionProcessor selProcessor = GetSelectionProcessor(selection.GetType());
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (2)
85throw new ArgumentException(SR.Get(SRID.WrongSelectionType), "anchor1: type = " + anchor1.GetType().ToString()); 88throw new ArgumentException(SR.Get(SRID.WrongSelectionType), "Anchor2: type = " + anchor2.GetType().ToString());
src\Framework\MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
523Type type = component.GetType();
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (1)
114throw new InvalidOperationException(SR.Get(SRID.MultiSingleton, this.GetType().FullName));
src\Framework\MS\Internal\AppModel\DeploymentExceptionMapper.cs (1)
96Assembly deploymentDll = Assembly.GetAssembly(hostingManager.GetType());
src\Framework\MS\Internal\AppModel\Journaling.cs (3)
569throw new Exception(SR.Get(SRID.InvalidPageFunctionType, contentObject.GetType( ))); 654string typeName = pageFunction.GetType().AssemblyQualifiedName; 696Debug.Assert(contentObject.GetType().AssemblyQualifiedName == this._typeName.Value,
src\Framework\MS\Internal\AppModel\ReturnEventSaver.cs (3)
89returnDelegate.GetType().AssemblyQualifiedName, 90returnDelegate.Target.GetType().AssemblyQualifiedName, 143if (string.Compare(_returnList[i]._targetTypeName, caller.GetType().AssemblyQualifiedName, StringComparison.Ordinal) != 0)
src\Framework\MS\Internal\Data\BindingCollection.cs (1)
127throw new NotSupportedException(SR.Get(SRID.BindingCollectionContainsNonBinding, binding.GetType().Name));
src\Framework\MS\Internal\Data\ClrBindingWorker.cs (1)
203ParentBindingExpression.SetupDefaultValueConverter(item.GetType());
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (3)
331( (o != null && destinationType.IsAssignableFrom(o.GetType())) || 589if (o != null && _sourceType.IsAssignableFrom(o.GetType())) 627if ((o != null && _targetType.IsAssignableFrom(o.GetType())) ||
src\Framework\MS\Internal\Data\DynamicValueConverter.cs (2)
51Type sourceType = value.GetType(); 76Type targetType = value.GetType();
src\Framework\MS\Internal\Data\EnumerableCollectionView.cs (1)
593TraceData.CollectionChangedWithoutNotification(SourceCollection.GetType().FullName));
src\Framework\MS\Internal\Data\IndexedEnumerable.cs (1)
500Type srcType = collection.GetType();
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (4)
1623throw new InvalidOperationException(SR.Get(SRID.CannotWriteToReadOnly, item.GetType(), pi.Name)); 1628throw new InvalidOperationException(SR.Get(SRID.CannotWriteToReadOnly, item.GetType(), pd.Name)); 1633throw new InvalidOperationException(SR.Get(SRID.CannotWriteToReadOnly, item.GetType(), dp.Name)); 1638throw new InvalidOperationException(SR.Get(SRID.CannotWriteToReadOnly, item.GetType(), dpa.PropertyName));
src\Framework\MS\Internal\Data\ValueTable.cs (1)
229pd = TypeDescriptor.GetProperties(item.GetType())[name];
src\Framework\MS\Internal\Data\ViewManager.cs (3)
602collectionViewType.Name, collection.GetType()), e); 845Type cachedViewType = (cvp == null) ? cv.GetType() : cvp.ProxiedView.GetType();
src\Framework\MS\Internal\Data\XDeferredAxisSource.cs (1)
81MemberInfo[] aryMembers= xda.GetType().GetDefaultMembers();
src\Framework\MS\Internal\Data\XmlBindingWorker.cs (2)
552node.GetType().Name, node.Name); 561nodeList.GetType().Name, AvTrace.GetHashCodeHelper(nodeList), nodeList.Count);
src\Framework\MS\Internal\DataStreams.cs (1)
286DependencyProperty dp = DependencyProperty.FromName(subStream._propertyName, element.GetType());
src\Framework\MS\Internal\FrameworkObject.cs (1)
84object arg = (d != null) ? (object)d.GetType() : (object)"NULL";
src\Framework\MS\Internal\Helper.cs (10)
312throw new InvalidOperationException(SR.Get(SRID.MustBeFrameworkDerived, d.GetType())); 607Type targetType = targetObject.GetType(); 690!memberType.IsAssignableFrom(markupExtension.GetType())) 693markupExtension.GetType().Name, 710if (!typeof(BindingBase).IsAssignableFrom(markupExtension.GetType()) || 711!typeof(Collection<BindingBase>).IsAssignableFrom(targetProperty.GetType())) 714markupExtension.GetType().Name, 715targetProperty.GetType().Name)); 734if (!typeof(BindingBase).IsAssignableFrom(markupExtension.GetType()) || 738markupExtension.GetType().Name,
src\Framework\MS\Internal\Ink\EraserBehavior.cs (2)
187|| _cachedStylusShape.GetType() != InkCanvas.EraserShape.GetType()) )
src\Framework\MS\Internal\Ink\PenCursorManager.cs (1)
76if (stylusShape.GetType() == typeof(RectangleStylusShape))
src\Framework\MS\Internal\Interop\InternalDispatchObject.cs (1)
149throw new MissingMethodException(GetType().Name, name);
src\Framework\MS\Internal\IO\Packaging\ContentDescriptor.cs (2)
50if (other.GetType() != GetType())
src\Framework\MS\Internal\LayoutDump.cs (15)
210writer.WriteStartElement(visual.GetType().Name); 247writer.WriteStartElement(element.GetType().Name); 269Type t = element.GetType(); 302writer.WriteAttributeString("Type", page.GetType().FullName); 318Type t = page.GetType(); 744writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 766writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 784writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 802writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 819writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 866writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 906Type paragraphResultType = paragraph.GetType(); 909Type paraClientType = paraClient.GetType(); 951Type paragraphResultType = paragraph.GetType(); 966Type typeOfCell = cell.GetType();
src\Framework\MS\Internal\Markup\StaticExtension.cs (1)
94throw new ArgumentException(SR.Get(SRID.MarkupExtensionNoContext, GetType().Name, "IXamlTypeResolver"));
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (1)
1068throw new InvalidOperationException(SR.Get(SRID.TextSchema_TextIsNotAllowedInThisContext, Element.GetType().Name));
src\Framework\MS\Internal\Text\TypographyProperties.cs (2)
699if (this.GetType() != other.GetType())
src\Framework\MS\Internal\TraceData.cs (7)
110traceBuilder.Append(o.GetType().Name); 198traceBuilder.AppendFormat("'{0}' (Name='{1}')", fe.GetType().Name, fe.Name); 202traceBuilder.AppendFormat("'{0}' (HashCode={1})", o.GetType().Name, o.GetHashCode()); 255Type type = o.GetType(); 291return Format("{0}({1})", dp.GetType().Name, dp.Name); 295return Format("{0}({1})", pi.GetType().Name, pi.Name); 299return Format("{0}({1})", pd.GetType().Name, pd.Name);
src\Framework\MS\Internal\Utility\TraceLog.cs (1)
66o.GetType().Name, o.GetHashCode());
src\Framework\MS\Internal\WeakHashtable.cs (1)
59Debug.Assert(!key.GetType().IsValueType, "WeakHashtable doesn't support value-type keys. Use WeakObjectHashtable instead.");
src\Framework\MS\Internal\WindowsRuntime\Windows\Data\Text\AlternateWordForm.cs (1)
45if (alternateWordForm.GetType() != s_WinRTType) throw new ArgumentException();
src\Framework\MS\Internal\WindowsRuntime\Windows\Data\Text\TextSegment.cs (1)
34if (textSegment.GetType() != s_WinRTType) throw new ArgumentException();
src\Framework\MS\Internal\WindowsRuntime\Windows\Data\Text\WordSegment.cs (1)
44if (wordSegment.GetType() != s_WinRTType) throw new ArgumentException();
src\Framework\System\Windows\Application.cs (5)
535if (bamlStream == null || bamlStream.Assembly != component.GetType().Assembly) 537throw new Exception(SR.Get(SRID.UriNotMatchWithRootType, component.GetType( ), resourceLocator)); 1805throw new InvalidOperationException(SR.Get(SRID.CannotCallRunMultipleTimes, this.GetType().FullName)); 1812throw new ArgumentException(SR.Get(SRID.WindowPassedShouldBeOnApplicationThread, window.GetType().FullName, this.GetType().FullName));
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
179return this.Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\CalendarButtonAutomationPeer.cs (1)
60return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (1)
76return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridCellAutomationPeer.cs (1)
50return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeaderAutomationPeer.cs (1)
46return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
46return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridDetailsPresenterAutomationPeer.cs (1)
33return this.Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (1)
50return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DataGridRowHeaderAutomationPeer.cs (1)
46return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (1)
114return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (1)
43return Owner.GetType().Name;
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
620if (value != null && !value.GetType().IsValueType &&
src\Framework\System\Windows\Automation\Peers\UserControlAutomationPeer.cs (1)
20return Owner.GetType().Name;
src\Framework\System\Windows\ColorConvertedBitmapExtension.cs (1)
101throw new InvalidOperationException(SR.Get(SRID.MarkupExtensionNoContext, GetType().Name, "IUriContext" ));
src\Framework\System\Windows\Condition.cs (1)
143value.GetType().Name));
src\Framework\System\Windows\Controls\AdornedElementPlaceholder.cs (3)
73throw new ArgumentException (SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 76throw new ArgumentException(SR.Get(SRID.CanOnlyHaveOneChild, this.GetType(), value.GetType()));
src\Framework\System\Windows\Controls\BorderGapMaskConverter.cs (4)
51!doubleType.IsAssignableFrom(values[0].GetType()) || 52!doubleType.IsAssignableFrom(values[1].GetType()) || 53!doubleType.IsAssignableFrom(values[2].GetType()) ) 58Type paramType = parameter.GetType();
src\Framework\System\Windows\Controls\ComboBox.cs (1)
740undoManager.OpenedUnit.GetType() != typeof(TextParentUndoUnit))
src\Framework\System\Windows\Controls\DataErrorValidationRule.cs (1)
108idei.GetType().FullName,
src\Framework\System\Windows\Controls\DataGridAutoGeneratingColumnEventArgs.cs (2)
112typeof(PropertyDescriptor).IsAssignableFrom(value.GetType()) || 113typeof(PropertyInfo).IsAssignableFrom(value.GetType()),
src\Framework\System\Windows\Controls\Decorator.cs (3)
76throw new ArgumentException (SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 81throw new ArgumentException(SR.Get(SRID.CanOnlyHaveOneChild, this.GetType(), value.GetType()));
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (1)
1968throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value");
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1616if(scrollInfo.GetType() == typeof(System.Windows.Controls.ScrollContentPresenter)) 1870throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value");
src\Framework\System\Windows\Controls\Frame.cs (1)
1235Debug.Assert(JournalEntry.GetType().IsSerializable);
src\Framework\System\Windows\Controls\Grid.cs (1)
120throw (new ArgumentException(SR.Get(SRID.Grid_UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"));
src\Framework\System\Windows\Controls\GridView.cs (1)
92return SR.Get(SRID.ToStringFormatString_GridView, this.GetType(), Columns.Count);
src\Framework\System\Windows\Controls\GridViewColumn.cs (1)
65return SR.Get(SRID.ToStringFormatString_GridViewColumn, this.GetType(), Header);
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (1)
764System.Reflection.Assembly assembly = this.GetType().Assembly;
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1183Type headerType = (srcHeader != null ? srcHeader.GetType() : typeof(GridViewColumnHeader));
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (3)
42this.GetType(), 95Type oldType = (e.OldValue != null) ? e.OldValue.GetType() : null; 96Type newType = (e.NewValue != null) ? e.NewValue.GetType() : null;
src\Framework\System\Windows\Controls\GroupItem.cs (1)
200throw new InvalidOperationException(SR.Get(SRID.StyleForWrongType, style.TargetType.Name, this.GetType().Name));
src\Framework\System\Windows\Controls\HeaderedContentControl.cs (1)
392string typeText = this.GetType().ToString();
src\Framework\System\Windows\Controls\HeaderedItemsControl.cs (1)
334string typeText = this.GetType().ToString();
src\Framework\System\Windows\Controls\InkCanvas.cs (2)
796|| oldShape.Rotation != _eraserShape.Rotation || oldShape.GetType() != _eraserShape.GetType())
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (4)
121String.Format(CultureInfo.InvariantCulture, "ItemContainerGenerator for {0} {1} - {2} items", Host.GetType().Name, label, _itemsGenerated)); 338_containerType = container.GetType(); 340else if (_containerType != container.GetType()) 1122Type sourceType = source.GetType();
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
3448throw new InvalidOperationException(SR.Get(SRID.StyleForWrongType, style.TargetType.Name, container.GetType().Name)); 3939return SR.Get(SRID.ToStringFormatString_ItemsControl, this.GetType(), itemsCount);
src\Framework\System\Windows\Controls\ItemsPanelTemplate.cs (1)
168throw new ArgumentException(SR.Get(SRID.TemplateTargetTypeMismatch, "ItemsPresenter", templatedParent.GetType().Name));
src\Framework\System\Windows\Controls\ItemsPresenter.cs (1)
331if (oldPanel != null && oldPanel.GetType() == type)
src\Framework\System\Windows\Controls\MenuItem.cs (1)
2167throw new InvalidOperationException(SR.Get(SRID.InvalidItemContainer, this.GetType().Name, typeof(MenuItem).Name, typeof(Separator).Name, itemContainer));
src\Framework\System\Windows\Controls\MenuScrollingVisibilityConverter.cs (5)
59!typeof(Visibility).IsAssignableFrom(values[0].GetType()) || 60!doubleType.IsAssignableFrom(values[1].GetType()) || 61!doubleType.IsAssignableFrom(values[2].GetType()) || 62!doubleType.IsAssignableFrom(values[3].GetType()) ) 67Type paramType = parameter.GetType();
src\Framework\System\Windows\Controls\PageRanges.cs (1)
181if (obj == null || obj.GetType() != typeof(PageRange))
src\Framework\System\Windows\Controls\Panel.cs (1)
103throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value");
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (1)
895Invariant.Assert(false, "Unexpected type: " + strongReference.GetType());
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
41this.GetType(),
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
518throw new InvalidOperationException(SR.Get(SRID.InvalidItemContainer, this.GetType().Name, typeof(MenuItem).Name, typeof(Separator).Name, itemContainer));
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
1299throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value");
src\Framework\System\Windows\Controls\Primitives\RangeBase.cs (1)
378string typeText = this.GetType().ToString();
src\Framework\System\Windows\Controls\Primitives\Selector.cs (2)
620Type selectedType = (value != null) ? value.GetType() : null; 648Type itemType = itemValue.GetType();
src\Framework\System\Windows\Controls\Primitives\StatusBar.cs (1)
128throw new InvalidOperationException(SR.Get(SRID.InvalidItemContainer, this.GetType().Name, typeof(StatusBarItem).Name, typeof(Separator).Name, itemContainer));
src\Framework\System\Windows\Controls\Primitives\ToggleButton.cs (1)
299string typeText = this.GetType().ToString();
src\Framework\System\Windows\Controls\RichTextBox.cs (3)
163throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value"); 168throw new ArgumentException(SR.Get(SRID.CanOnlyHaveOneChild, this.GetType(), value.GetType()));
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
2310if(isi.GetType() == typeof(System.Windows.Controls.ScrollContentPresenter))
src\Framework\System\Windows\Controls\TextBlock.cs (3)
149throw new ArgumentException(SR.Get(SRID.TextPanelIllegalParaTypeForIAddChild, "value", value.GetType())); 154Type parentType = _complexContent.TextContainer.Parent.GetType(); 156Type valueType = value.GetType();
src\Framework\System\Windows\Controls\ToolBar.cs (3)
486Type feType = fe.GetType(); 622throw new NotSupportedException(SR.Get(SRID.ToolBar_InvalidStyle_ToolBarPanel, child.GetType())); 645throw new NotSupportedException(SR.Get(SRID.ToolBar_InvalidStyle_ToolBarOverflowPanel, child.GetType()));
src\Framework\System\Windows\Controls\ToolBarTray.cs (1)
291throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(ToolBar)), "value");
src\Framework\System\Windows\Controls\UIElementCollection.cs (3)
46throw new ArgumentNullException(SR.Get(SRID.Panel_NoNullVisualParent, "visualParent", this.GetType())); 402throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, "UIElementCollection", value.GetType().Name, "UIElement")); 532throw new ArgumentNullException(SR.Get(SRID.Panel_NoNullChildren, this.GetType()));
src\Framework\System\Windows\Controls\ViewPort3D.cs (1)
245throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(Visual3D)), "value");
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
6455string name = (container == null) ? "null" : container.GetType().Name; 12102for (Type t = o.GetType(); !isWPFControl && t != null; t = t.BaseType)
src\Framework\System\Windows\Controls\WebBrowser.cs (2)
602Type t = value.GetType(); 892throw new System.ObjectDisposedException(GetType().Name);
src\Framework\System\Windows\ControlTemplate.cs (1)
74throw new ArgumentException(SR.Get(SRID.TemplateTargetTypeMismatch, _targetType.Name, templatedParent.GetType().Name));
src\Framework\System\Windows\CornerRadiusConverter.cs (1)
155throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(CornerRadius)), "value");
src\Framework\System\Windows\Data\BindingExpression.cs (4)
1323&& !targetType.IsAssignableFrom(value.GetType())) 1656string name = String.IsNullOrEmpty(stringFormat) ? converter.GetType().Name : "StringFormat"; 1672converter.GetType().Name, 2185if (sourceType.IsAssignableFrom(value.GetType()))
src\Framework\System\Windows\Data\BindingExpressionBase.cs (4)
148Type type = parent.GetType(); 951target.GetType().FullName, dp.Name, AvTrace.GetHashCodeHelper(target))); 1331undoManager.OpenedUnit.GetType() != typeof(System.Windows.Documents.TextParentUndoUnit)) 2189if (converter != null && converter.CanConvertFrom(value.GetType()))
src\Framework\System\Windows\Data\BindingGroup.cs (1)
587TraceData.BindingGroupWrongProperty(name, context.GetType().FullName));
src\Framework\System\Windows\Data\CollectionView.cs (2)
79if (this.GetType() == typeof(CollectionView)) 1526Type collectionType = SourceCollection.GetType();
src\Framework\System\Windows\Data\MultiBinding.cs (2)
66throw new ArgumentException(SR.Get(SRID.ChildHasWrongType, this.GetType().Name, "BindingBase", value.GetType().FullName), "value");
src\Framework\System\Windows\Data\MultiBindingExpression.cs (3)
538Converter.GetType().Name, 565Converter.GetType().Name, count, values.Length, 596Converter.GetType().Name,
src\Framework\System\Windows\Data\ObjectDataProvider.cs (2)
166Debug.Assert((_objectInstance == null) ? (_objectType == null) : (_objectType == _objectInstance.GetType())); 361SetObjectType((value != null) ? value.GetType() : null);
src\Framework\System\Windows\Data\PriorityBinding.cs (2)
61throw new ArgumentException(SR.Get(SRID.ChildHasWrongType, this.GetType().Name, "BindingBase", value.GetType().FullName), "value");
src\Framework\System\Windows\Data\XmlNamespaceMapping.cs (6)
50throw new InvalidOperationException(SR.Get(SRID.PropertyIsInitializeOnly, "Prefix", this.GetType().Name)); 52throw new InvalidOperationException(SR.Get(SRID.PropertyIsImmutable, "Prefix", this.GetType().Name)); 69throw new InvalidOperationException(SR.Get(SRID.PropertyIsInitializeOnly, "Uri", this.GetType().Name)); 71throw new InvalidOperationException(SR.Get(SRID.PropertyIsImmutable, "Uri", this.GetType().Name)); 147throw new InvalidOperationException(SR.Get(SRID.PropertyMustHaveValue, "Prefix", this.GetType().Name)); 151throw new InvalidOperationException(SR.Get(SRID.PropertyMustHaveValue, "Uri", this.GetType().Name));
src\Framework\System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
56throw new ArgumentException(SR.Get(SRID.RequiresXmlNamespaceMapping, value.GetType().FullName), "value");
src\Framework\System\Windows\DataTemplate.cs (1)
197throw new ArgumentException(SR.Get(SRID.TemplateTargetTypeMismatch, "ContentPresenter", templatedParent.GetType().Name));
src\Framework\System\Windows\DataTrigger.cs (1)
82value.GetType().Name));
src\Framework\System\Windows\Documents\DocumentSequence.cs (1)
124throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(DocumentReference)), "value");
src\Framework\System\Windows\Documents\DocumentStructures\SemanticBasicElement.cs (9)
92throw new ArgumentException(SR.Get(SRID.DocumentStructureUnexpectedParameterType4, value.GetType(), 141throw new ArgumentException(SR.Get(SRID.DocumentStructureUnexpectedParameterType1, value.GetType(), 179throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(NamedElement)), "value"); 234throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(ListItemStructure)), "value"); 279throw new ArgumentException(SR.Get(SRID.DocumentStructureUnexpectedParameterType4, value.GetType(), 335throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(TableRowGroupStructure)), "value"); 380throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(TableRowStructure)), "value"); 426throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(TableCellStructure)), "value"); 473throw new ArgumentException(SR.Get(SRID.DocumentStructureUnexpectedParameterType4, value.GetType(),
src\Framework\System\Windows\Documents\DocumentStructures\StoryFragments.cs (2)
67throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(StoryFragment)), "value"); 130throw new ArgumentException(SR.Get(SRID.DocumentStructureUnexpectedParameterType6, value.GetType(),
src\Framework\System\Windows\Documents\FixedDocument.cs (1)
159throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(PageContent)), "value");
src\Framework\System\Windows\Documents\FixedLineResult.cs (2)
57if (o.GetType() != typeof(FixedLineResult)) 59throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, o.GetType(), typeof(FixedLineResult)), "o");
src\Framework\System\Windows\Documents\FixedNode.cs (2)
164if (o.GetType() != typeof(FixedNode)) 166throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, o.GetType(), typeof(FixedNode)), "o");
src\Framework\System\Windows\Documents\FixedPage.cs (1)
201throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value");
src\Framework\System\Windows\Documents\FixedSOMContainer.cs (1)
47throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, comparedObj.GetType(), typeof(FixedSOMContainer)), "comparedObj");
src\Framework\System\Windows\Documents\FixedSOMGroup.cs (1)
49throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, comparedObj.GetType(), typeof(FixedSOMGroup)), "comparedObj");
src\Framework\System\Windows\Documents\FixedSOMSemanticBox.cs (1)
104throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, o.GetType(), typeof(FixedSOMSemanticBox)), "o");
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
558return e.IsTextElement ? e.Type : ((ITextContainer)_flowPosition.TextContainer).Parent.GetType();
src\Framework\System\Windows\Documents\FlowDocument.cs (3)
1652if (!TextSchema.IsValidChildOfContainer(/*parentType:*/_typeofThis, /*childType:*/value.GetType())) 1654throw new ArgumentException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, _typeofThis.Name, value.GetType().Name)); 1660throw new ArgumentException(SR.Get(SRID.TextSchema_TheChildElementBelongsToAnotherTreeAlready, value.GetType().Name));
src\Framework\System\Windows\Documents\FlowNode.cs (3)
97if (o == null || this.GetType() != o.GetType()) 124throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, o.GetType(), typeof(FlowNode)), "o");
src\Framework\System\Windows\Documents\FlowPosition.cs (1)
81throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, o.GetType(), typeof(FlowPosition)), "o");
src\Framework\System\Windows\Documents\InlineCollection.cs (4)
168if (!TextSchema.IsValidChildOfContainer(this.Parent.GetType(), child.GetType())) 170throw new InvalidOperationException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, this.Parent.GetType().Name, child.GetType().Name));
src\Framework\System\Windows\Documents\PageContent.cs (2)
199throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(FixedPage)), "value"); 642throw new ApplicationException(SR.Get(SRID.PageContentUnsupportedPageType, o.GetType()));
src\Framework\System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
115Type factoryType = factoryInstance.GetType();
src\Framework\System\Windows\Documents\Span.cs (2)
133throw new InvalidOperationException(SR.Get(SRID.TextSchema_CannotSplitElement, nonMergeableAncestor.GetType().Name)); 137throw new InvalidOperationException(SR.Get(SRID.TextSchema_CannotSplitElement, nonMergeableAncestor.GetType().Name));
src\Framework\System\Windows\Documents\Speller.cs (1)
922"Document = " + start.TextContainer.Parent.GetType().Name + "\n";
src\Framework\System\Windows\Documents\Table.cs (1)
93throw (new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(TableRowGroup)), "value"));
src\Framework\System\Windows\Documents\TableCell.cs (1)
109throw new InvalidOperationException(SR.Get(SRID.TableInvalidParentNodeType, newParent.GetType().ToString()));
src\Framework\System\Windows\Documents\TableRow.cs (2)
90throw (new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(TableCell)), "value")); 114throw new InvalidOperationException(SR.Get(SRID.TableInvalidParentNodeType, newParent.GetType().ToString()));
src\Framework\System\Windows\Documents\TableRowGroup.cs (2)
105throw (new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(TableRow)), "value")); 330throw new InvalidOperationException(SR.Get(SRID.TableInvalidParentNodeType, newParent.GetType().ToString()));
src\Framework\System\Windows\Documents\TextElement.cs (12)
846Type valueType = value.GetType(); 865throw new ArgumentException(SR.Get(SRID.TextSchema_ThisInlineUIContainerHasAChildUIElementAlready, this.GetType().Name, ((InlineUIContainer)this).Child.GetType().Name, value.GetType().Name)); 877throw new ArgumentException(SR.Get(SRID.TextSchema_ThisBlockUIContainerHasAChildUIElementAlready, this.GetType().Name, ((BlockUIContainer)this).Child.GetType().Name, value.GetType().Name)); 893throw new ArgumentException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name)); 900throw new ArgumentException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name)); 944throw new InvalidOperationException(SR.Get(SRID.TextSchema_TextIsNotAllowed, this.GetType().Name));
src\Framework\System\Windows\Documents\TextElementCollection.cs (6)
260throw new InvalidOperationException(SR.Get(SRID.TextElementCollection_PreviousSiblingDoesNotBelongToThisCollection, previousSibling.GetType().Name)); 265throw new ArgumentException(SR.Get(SRID.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 305throw new InvalidOperationException(SR.Get(SRID.TextElementCollection_NextSiblingDoesNotBelongToThisCollection, nextSibling.GetType().Name)); 310throw new ArgumentException(SR.Get(SRID.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 490throw new ArgumentException(SR.Get(SRID.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 632Type elementType = array.GetType().GetElementType();
src\Framework\System\Windows\Documents\TextPointer.cs (8)
1439Type containerType = this.TextContainer.Parent.GetType(); 1451throw new InvalidOperationException(SR.Get(SRID.TextSchema_CannotSplitElement, ancestor.GetType().Name)); 1633TextSchema.IsFormattingType(position.GetAdjacentElement(LogicalDirection.Backward).GetType())) 1743while (ancestor != null && TextSchema.IsMergeableInline(ancestor.GetType())) 2446return element != null ? element.GetType() : null; 3572bool isValidChild = TextSchema.ValidateChild(position, /*childType*/inline.GetType(), false /* throwIfIllegalChild */, true /* throwIfIllegalHyperlinkDescendent */); 3599Invariant.Assert(TextSchema.IsValidChild(position, /*childType*/inline.GetType())); 3650return element != null ? element.GetType() : null;
src\Framework\System\Windows\Documents\TextRange.cs (1)
805throw new ArgumentException(SR.Get(SRID.TextEditorTypeOfParameterIsNotAppropriateForFormattingProperty, value == null ? "null" : value.GetType().Name, formattingProperty.Name), "value");
src\Framework\System\Windows\Documents\TextRangeBase.cs (2)
1859while (outerAnchoredBlock != null && !typeof(AnchoredBlock).IsAssignableFrom(outerAnchoredBlock.GetType())) 1901while (outerAnchoredBlock != null && !typeof(AnchoredBlock).IsAssignableFrom(outerAnchoredBlock.GetType()))
src\Framework\System\Windows\Documents\TextRangeEdit.cs (32)
35TextElement newElement = (TextElement)Activator.CreateInstance(element.GetType()); 60Invariant.Assert(splitPosition.Parent != null && TextSchema.IsMergeableInline(splitPosition.Parent.GetType())); 176while (inline != null && inline.IsEmpty && !TextSchema.IsFormattingType(inline.GetType())) 189(inline.GetType() == typeof(Run) || inline.GetType() == typeof(Span)) && 200((inline.NextInline != null && TextSchema.IsFormattingType(inline.NextInline.GetType())) || 201(inline.PreviousInline != null && TextSchema.IsFormattingType(inline.PreviousInline.GetType())))) 268TextSchema.IsMergeableInline(position.Parent.GetType())) 273TextSchema.IsMergeableInline(position.Parent.GetType())) 287if (TextSchema.IsFormattingType(firstInline.GetType()) && firstInline.TextRange.IsEmpty) 292else if (TextSchema.IsFormattingType(secondInline.GetType()) && secondInline.TextRange.IsEmpty) 297else if (TextSchema.IsKnownType(firstInline.GetType()) && TextSchema.IsKnownType(secondInline.GetType()) && 299TextSchema.IsMergeableInline(firstInline.GetType()) && TextSchema.IsMergeableInline(secondInline.GetType()) 332TextSchema.IsMergeableInline(inline.Parent.GetType()) && 333TextSchema.IsKnownType(inline.Parent.GetType()) && 436else if (parent is Span && TextSchema.IsKnownType(parent.GetType())) 596Invariant.Assert(position.TextContainer.Parent == null || TextSchema.IsValidChildOfContainer(position.TextContainer.Parent.GetType(), typeof(Paragraph))); 794if (TextSchema.IsParagraphOrBlockUIContainer(block.GetType())) 1283TextSchema.IsMergeableInline(position.Parent.GetType())) 1288TextSchema.IsMergeableInline(position.Parent.GetType())) 1303TextSchema.IsMergeableInline(previousPosition.GetAdjacentElement(LogicalDirection.Backward).GetType())) 1312TextSchema.IsMergeableInline(nextPosition.GetAdjacentElement(LogicalDirection.Forward).GetType())) 1448if (parent is Inline || TextSchema.AllowsParagraphMerging(parent.GetType())) 1770while (splitPosition.Parent != null && TextSchema.IsMergeableInline(splitPosition.Parent.GetType()) && splitPosition.Parent != limitingAncestor && 2026if (TextSchema.IsMergeableInline(topmostSpan.GetType()) && TextSchema.IsKnownType(topmostSpan.GetType()) && !HasWriteableLocalPropertyValues(topmostSpan)) 2041parent != null && TextSchema.IsMergeableInline(parent.GetType()); 2123TextSchema.IsFormattingType(start.Parent.GetType())) // look for Run/Span elements 2271if (!TextSchema.IsMergeableInline(parent.GetType())) 2282if (!TextSchema.IsMergeableInline(parent.GetType()))
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (4)
84Invariant.Assert(TextSchema.AllowsParagraphMerging(parentBlock.GetType())); 114Invariant.Assert(TextSchema.AllowsParagraphMerging(previousBlock.GetType())); 640if (!TextSchema.AllowsParagraphMerging(position.Parent.GetType())) 660if (!TextSchema.AllowsParagraphMerging(position.Parent.GetType()))
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
639if (ancestor is List || ancestor is Inline && !TextSchema.IsMergeableInline(ancestor.GetType()))
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (11)
249TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(nextElement.GetType(), typeof(TextElementEditingBehaviorAttribute)); 629string complexPropertyName = table.GetType().Name + ".Columns"; 1145Type elementTypeStandardized = TextSchema.GetStandardElementType(element.GetType(), reduceElement); 1445TextSchema.IsFormattingType(positionBeforeParagraph.Parent.GetType())) 1450TextSchema.AllowsParagraphMerging(positionBeforeParagraph.Parent.GetType())) 1546Invariant.Assert(itemType.IsAssignableFrom(start.GetAdjacentElement(LogicalDirection.Forward).GetType()), "The first pasted fragment item is expected to be a " + itemType.Name); 1547Invariant.Assert(itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Backward).GetType()), "The last pasted fragment item is expected to be a " + itemType.Name); 1553Invariant.Assert(!(backwardFromStart == TextPointerContext.ElementEnd) || itemType.IsAssignableFrom(start.GetAdjacentElement(LogicalDirection.Backward).GetType()), "An element preceding a pasted fragment is expected to be a " + itemType.Name); 1555Invariant.Assert(!(forwardFromEnd == TextPointerContext.ElementStart) || itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Forward).GetType()), "An element following a pasted fragment is expected to be a " + itemType.Name); 1599if (TextSchema.IsBlock(propertyBag.GetType())) 1648else if (targetType.IsAssignableFrom(element.GetType()))
src\Framework\System\Windows\Documents\TextSchema.cs (13)
113bool isValidChild = IsValidChild(parent.GetType(), child.GetType()); 117throw new InvalidOperationException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, parent.GetType().Name, child.GetType().Name)); 144bool isValidChild = IsValidChild(parent.GetType(), childType); 148throw new InvalidOperationException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, parent.GetType().Name, childType.Name)); 167return (leftElement == null || IsValidSibling(leftElement.GetType(), childType)) && 168(rightElement == null || IsValidSibling(rightElement.GetType(), childType)); 176bool isValidChild = IsValidChild(parent.GetType(), childType); 180throw new InvalidOperationException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, parent.GetType().Name, childType.Name)); 626if (value1.GetType() != value2.GetType()) 906throw new InvalidOperationException(SR.Get(SRID.TextSchema_IllegalHyperlinkChild, nextElement.GetType()));
src\Framework\System\windows\Documents\TextSelection.cs (1)
1492TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(element.GetType(), typeof(TextElementEditingBehaviorAttribute));
src\Framework\System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (2)
301container = new ElementContentContainer(elementNode.TextElement.GetType(), 487base(table.GetType(), localValues, table.Resources, childContainer)
src\Framework\System\Windows\Documents\TextTreeExtractElementUndoUnit.cs (1)
33_type = elementNode.TextElement.GetType();
src\Framework\System\Windows\Documents\ValidationHelper.cs (4)
116if (!TextSchema.IsValidChild(/*position:*/position, /*childType:*/child.GetType())) 118throw new ArgumentException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, position.Parent.GetType().Name, child.GetType().Name)); 126throw new ArgumentException(SR.Get(SRID.TextSchema_TheChildElementBelongsToAnotherTreeAlready, child.GetType().Name));
src\Framework\System\Windows\EventSetter.cs (1)
114if (_handler.GetType() != _event.HandlerType)
src\Framework\System\Windows\EventSetterHandlerConverter.cs (1)
65if (typeDescriptorContext.GetType() != s_ServiceProviderContextType)
src\Framework\System\Windows\EventTrigger.cs (1)
60throw new ArgumentException(SR.Get(SRID.EventTriggerBadAction, value.GetType().Name));
src\Framework\System\Windows\FrameworkContentElement.cs (3)
540object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source); 607string TypeAndName = "[" + GetType().Name + "]" + dp.Name; 729PerfService.GetPerfElementID(this), GetType().Name, GetValue(dp));
src\Framework\System\Windows\FrameworkElement.cs (3)
1888object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source); 2004string TypeAndName = String.Format(CultureInfo.InvariantCulture, "[{0}]{1}({2})",GetType().Name,dp.Name,base.GetHashCode()); 2091PerfService.GetPerfElementID(this), GetType().Name, GetValue(dp));
src\Framework\System\Windows\FrameworkElementFactory.cs (7)
241throw new ArgumentException(SR.Get(SRID.ReadOnlyPropertyNotAllowed, dp.Name, GetType().Name)); 337if (handler.GetType() != routedEvent.HandlerType) 380if (handler.GetType() != routedEvent.HandlerType) 684parent.GetType().Name)); 941parent.GetType().Name)); 987frameworkObject.DO.GetType().Name)); 1147parent.GetType().Name));
src\Framework\System\Windows\FrameworkTemplate.cs (2)
1165throw new InvalidOperationException(SR.Get(SRID.TemplateMustBeFE, new object[] { rootObject.GetType().FullName })); 1179rootObject.GetType(), feResult != null, feResult, fceResult);
src\Framework\System\Windows\Input\Command\CommandValueSerializer.cs (4)
85throw new InvalidOperationException(SR.Get(SRID.ValueSerializerContextUnavailable, this.GetType().Name )); 92throw new InvalidOperationException(SR.Get(SRID.TypeValueSerializerUnavailable, this.GetType().Name )); 142throw new InvalidOperationException(SR.Get(SRID.ValueSerializerContextUnavailable, this.GetType().Name )); 149throw new InvalidOperationException(SR.Get(SRID.TypeValueSerializerUnavailable, this.GetType().Name ));
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
774throw new TargetInvocationException(SR.Get(SRID.AXNohWnd, GetType().Name), e);
src\Framework\System\Windows\Interop\DynamicScriptObject.cs (2)
417Type argType = args[i].GetType(); 696Type type = value.GetType();
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1148Type rootType = _root.GetType();
src\Framework\System\Windows\Markup\BamlReader.cs (1)
1094TypeConverter converter = TypeDescriptor.GetConverter(value.GetType());
src\Framework\System\Windows\Markup\BamlRecordReader.cs (23)
1041flags = GetFlagsFromType(element.GetType()); 1326short elementId = BamlMapTable.GetKnownTypeIdFromType(parent.GetType()); 1635paramInfo.ParameterType != param.GetType()) 1647converter.GetType(), 1670if (!paramInfo.ParameterType.IsAssignableFrom(param.GetType())) 1702converter.GetType(), 2714ThrowExceptionWithLine(SR.Get(SRID.ParserCannotSetValue, element.GetType().FullName, propertyDefinition.Name, valueType.Name), e); 2956ThrowExceptionWithLine(SR.Get(SRID.ParserCannotSetValue, element.GetType().FullName, propertyDefinition.AttributeInfo.Name, attribValue), e); 3095expectedType = CurrentContext.ObjectData.GetType(); 3435element.GetType().ToString(), holder.PropertyDefinition.Name), e); 3537parent.GetType().FullName, 3783ThrowExceptionWithLine(SR.Get(SRID.ParserCannotSetValue, currentTarget.GetType().FullName, attribInfo.Name, o), e); 3809o.GetType().FullName); 3828if (genericType != o.GetType()) 3923ThrowExceptionWithLine(SR.Get(SRID.ParserCannotSetValue, parentObject.GetType().FullName, memberInfo.Name, o), e); 4828ThrowException( SRID.ParserCannotAddAnyChildren2, typeName, currentObject.GetType().FullName ); 4846ThrowException( SRID.ParserCannotAddAnyChildren2, typeName, currentObject.GetType().FullName ); 4868return parent.GetType(); 4930elementType = element == null ? null : element.GetType(); 5075value.GetType().Name, 5076container.GetType().Name), 5175currentParentType = currentParent.GetType(); 5840Type currentParentType = currentParent.GetType();
src\Framework\System\Windows\Markup\BamlRecords.cs (2)
4953|| (KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(propertyMember.GetType())), 4996KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(PropertyMember.GetType( )) )
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (6)
65get { return _instance.GetType(); } 251if (!TryGetShouldSerializeMethod(new ShouldSerializeKey(instance.GetType(), pd.Name), out shouldSerializeMethod)) 253Type instanceType = instance.GetType(); 509(!PropertyIsAttached(PropertyDescriptor) && PropertyType == value.GetType() && 711Type type = value.GetType(); 962string typeName = typeSerializer.ConvertToString(enumValue.GetType(), context);
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (2)
713throw new InvalidOperationException(SR.Get(SRID.UnserializableKeyValue, property.Value.GetType().FullName)); 1052Type tagType = property.Value.GetType();
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (3)
682else if (typeConvert.GetType() == typeof(TypeConverter)) 711if(!propType.IsAssignableFrom(obj.GetType())) 2996if (target.GetType().Assembly == pc.StreamCreatedAssembly)
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (2)
329this.GetType(), 340this.GetType(),
src\Framework\System\Windows\Media\Animation\Storyboard.cs (11)
278SR.Get(SRID.Storyboard_NameNotFound, targetName, nameScopeUsed.GetType().ToString())); 320SR.Get(SRID.Storyboard_NameNotFound, targetName, nameScope.GetType().ToString())); 329SR.Get(SRID.Storyboard_NameNotFound, targetName, fe.GetType().ToString())); 338SR.Get(SRID.Storyboard_NameNotFound, targetName, fce.GetType().ToString())); 446throw new InvalidOperationException(SR.Get(SRID.Storyboard_NoTarget, currentTimeline.GetType().ToString() )); 454throw new InvalidOperationException(SR.Get(SRID.Storyboard_TargetPropertyRequired, currentTimeline.GetType().ToString() )); 576"Internal error - clockMappings table contains an unexpected object " + ((mappedObject == null ) ? "" : mappedObject.GetType().ToString()) ); 617"Internal error - clockMappings table contains unexpected object of type" + value.GetType() ); 725throw new InvalidOperationException(SR.Get(SRID.Storyboard_PropertyPathFrozenCheckFailed, AccessorName(path, i-1), path.Path, intermediateFreezable.GetType().ToString() )); 797throw new InvalidOperationException(SR.Get(SRID.Storyboard_AnimationMismatch, animationClock.Timeline.GetType(), targetProperty.Name, targetProperty.PropertyType)); 946throw new InvalidOperationException(SR.Get(SRID.Storyboard_ComplexPathNotSupported, targetObject.GetType().ToString()));
src\Framework\System\Windows\Navigation\Journal.cs (1)
489Debug.Assert(je.GetType().IsSerializable);
src\Framework\System\Windows\Navigation\NavigationService.cs (3)
1615_bp != null ? _bp.GetType().ToString() : "null")); 3528Type type = ccs.GetType(); 4245Debug.Fail("Unhandled scenario: PageFunction returning to " + parentEntry.GetType().Name);
src\Framework\System\Windows\PropertyPath.cs (3)
565(accessor != null) ? accessor.GetType().FullName : "null")); 643accessor = SystemCoreHelper.NewDynamicPropertyAccessor(item.GetType(), propertyName); 731args[i].type = value.GetType();
src\Framework\System\Windows\PropertyPathConverter.cs (3)
120throw new ArgumentException(SR.Get(SRID.CannotConvertType, source.GetType().FullName, typeof(PropertyPath))); 164throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(PropertyPath)), "value"); 250type = pathPart.GetType();
src\Framework\System\Windows\ResourceDictionary.cs (1)
554valueType = value.GetType();
src\Framework\System\Windows\Setter.cs (2)
81throw new ArgumentException(SR.Get(SRID.ReadOnlyPropertyNotAllowed, property.Name, GetType().Name)); 126value.GetType().Name));
src\Framework\System\Windows\Standard\Utilities.cs (2)
262DependencyPropertyDescriptor dpd = DependencyPropertyDescriptor.FromProperty(property, component.GetType()); 275DependencyPropertyDescriptor dpd = DependencyPropertyDescriptor.FromProperty(property, component.GetType());
src\Framework\System\Windows\Standard\Verify.cs (1)
297foreach (var ifaceType in parameter.GetType().GetInterfaces())
src\Framework\System\Windows\StaticResourceExtension.cs (2)
212throw new InvalidOperationException(SR.Get(SRID.MarkupExtensionNoContext, GetType().Name, "IXamlSchemaContextProvider")); 218throw new InvalidOperationException(SR.Get(SRID.MarkupExtensionNoContext, GetType().Name, "IAmbientProvider"));
src\Framework\System\Windows\Style.cs (4)
423throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(SetterBase)), "value"); 493Type elementType = element.GetType(); 689"Unsupported SetterBase subclass in style triggers ({0})", setterBase.GetType().ToString()); 827throw new InvalidOperationException(SR.Get(SRID.UnsupportedTriggerInStyle, trigger.GetType().Name));
src\Framework\System\Windows\StyleHelper.cs (14)
993throw new InvalidOperationException(SR.Get(SRID.UnsupportedTriggerInTemplate, triggerBase.GetType().Name)); 1010throw new InvalidOperationException(SR.Get(SRID.UnsupportedTriggerInTemplate, triggerBase.GetType().Name)); 1607throw new InvalidOperationException(SR.Get(SRID.CrossThreadAccessOfUnshareableFreezable, freezable.GetType().FullName)); 1838String.Format(System.Globalization.CultureInfo.InvariantCulture, "Style.InstantiateSubTree for {0} {1}", container.GetType().Name, label)); 1878String.Format(System.Globalization.CultureInfo.InvariantCulture, "Style.InstantiateSubTree for {0} {1}", container.GetType().Name, label)); 2084if( walkNode.GetType() == container.GetType() ) 2091SR.Get(SRID.TemplateCircularReferenceFound, name, walkNode.GetType())); 2348throw new InvalidOperationException(SR.Get(SRID.MustBeFrameworkDerived, d.GetType())); 4354candidateTrigger.GetType().ToString() + " is not expected. Where did this object come from?"); 5065"FrugalMap for holding List<TriggerBase> is holding an instance of unexpected type " + existing.GetType() ); 5111"HybridDictionary for holding List<TriggerBase> is holding an instance of unexpected type " + existing.GetType() ); 5285candidateTrigger.GetType().ToString() + " is not expected. Where did this object come from?"); 5895Type stateType = (state != null) ? state.GetType() : null;
src\Framework\System\Windows\SystemResources.cs (2)
1876return _keyOrValue != null ? _keyOrValue.GetType() : null; 2089return value != null ? value.GetType() : null;
src\Framework\System\Windows\TemplateContent.cs (5)
763if (staticResource.GetType() == typeof(StaticResourceExtension)) 769else if (staticResource.GetType() == typeof(StaticResourceHolder)) 914Type typeofValue = xamlReader.Value.GetType(); 1046if (xamlReader.Value != null && typeof(StaticResourceExtension).IsAssignableFrom(xamlReader.Value.GetType())) 1143if (value != null && !IsTypeShareable(value.GetType()))
src\Framework\System\Windows\TemplateKey.cs (6)
54throw new InvalidOperationException(SR.Get(SRID.PropertyMustHaveValue, "DataType", this.GetType().Name)); 73throw new InvalidOperationException(SR.Get(SRID.PropertyIsInitializeOnly, "DataType", this.GetType().Name)); 75throw new InvalidOperationException(SR.Get(SRID.PropertyIsImmutable, "DataType", this.GetType().Name)); 124this.GetType().Name, DataType) 126this.GetType().Name); 169result = new ArgumentException(SR.Get(SRID.MustBeTypeOrString, dataType.GetType().Name), argName);
src\Framework\System\Windows\ThemeDictionaryExtension.cs (1)
90throw new InvalidOperationException(SR.Get(SRID.MarkupExtensionNoContext, GetType().Name, "IProvideValueTarget" ));
src\Framework\System\Windows\ThicknessConverter.cs (1)
153throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(Thickness)), "value");
src\Framework\System\Windows\Trigger.cs (2)
83value.GetType().Name)); 187throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, o.GetType(), typeof(Setter)), "o");
src\Framework\System\Windows\TriggerBase.cs (1)
311throw new InvalidOperationException(SR.Get(SRID.VisualTriggerSettersIncludeUnsupportedSetterType, setters[i].GetType().Name));
src\Shared\MS\Internal\WindowsRuntime\ReflectionHelper.cs (5)
146method = obj.GetType().GetMethod(methodName, Type.EmptyTypes); 178method = obj.GetType().GetMethod(methodName, new Type[] { typeof(TArg1) }); 232method = obj.GetType().GetMethod(methodName, new Type[] { typeof(TArg1), typeof(TArg2) }); 284fieldInfo = obj.GetType().GetField(fieldName); 387Type type = obj.GetType();
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (3)
42!typeof(Brush).IsAssignableFrom(values[0].GetType()) || 43!doubleType.IsAssignableFrom(values[1].GetType()) || 44!doubleType.IsAssignableFrom(values[2].GetType()))
PresentationFramework.Classic (5)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (5)
52!typeof(Brush).IsAssignableFrom(values[0].GetType()) || 53!typeof(bool).IsAssignableFrom(values[1].GetType()) || 54!doubleType.IsAssignableFrom(values[2].GetType()) || 55!doubleType.IsAssignableFrom(values[3].GetType()) || 56!doubleType.IsAssignableFrom(values[4].GetType()))
PresentationFramework.Luna (5)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (5)
52!typeof(Brush).IsAssignableFrom(values[0].GetType()) || 53!typeof(bool).IsAssignableFrom(values[1].GetType()) || 54!doubleType.IsAssignableFrom(values[2].GetType()) || 55!doubleType.IsAssignableFrom(values[3].GetType()) || 56!doubleType.IsAssignableFrom(values[4].GetType()))
PresentationFramework.Royale (5)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (5)
52!typeof(Brush).IsAssignableFrom(values[0].GetType()) || 53!typeof(bool).IsAssignableFrom(values[1].GetType()) || 54!doubleType.IsAssignableFrom(values[2].GetType()) || 55!doubleType.IsAssignableFrom(values[3].GetType()) || 56!doubleType.IsAssignableFrom(values[4].GetType()))
SMSvcHost (2)
System\ServiceModel\Activation\Diagnostics\ListenerTraceUtility.cs (1)
89return source.GetType().ToString() + "/" + source.GetHashCode().ToString(CultureInfo.CurrentCulture);
System\ServiceModel\Activation\SMSvcHost.cs (1)
45if (majorVersion != null && majorVersion.GetType().Equals(typeof(int)))
System (424)
compmod\microsoft\csharp\csharpcodeprovider.cs (3)
1108throw new ArgumentException(SR.GetString(SR.InvalidElementType, e.GetType().FullName), "e"); 1261throw new ArgumentException(SR.GetString(SR.InvalidPrimitiveType, e.Value.GetType().ToString())); 1740throw new ArgumentException(SR.GetString(SR.InvalidElementType, e.GetType().FullName), "e");
compmod\system\codedom\compiler\CodeGenerator.cs (3)
682throw new ArgumentException(SR.GetString(SR.InvalidElementType, e.GetType().FullName), "e"); 948throw new ArgumentException(SR.GetString(SR.InvalidElementType, e.GetType().FullName), "e"); 1538throw new ArgumentException(SR.GetString(SR.InvalidPrimitiveType, e.Value.GetType().ToString()));
compmod\system\codedom\compiler\CodeValidator.cs (7)
54throw new ArgumentException(SR.GetString(SR.InvalidElementType, e.GetType().FullName), "e"); 83throw new ArgumentException(SR.GetString(SR.InvalidElementType, e.GetType().FullName), "e"); 403throw new ArgumentException(SR.GetString(SR.InvalidElementType, e.GetType().FullName), "e"); 572String message = SR.GetString(SR.InvalidTypeName, typeName, propertyName, e.GetType().FullName); 579String message = SR.GetString(SR.InvalidLanguageIdentifier, identifier, propertyName, e.GetType().FullName); 665throw new ArgumentException(SR.GetString(SR.InvalidElementType, e.GetType().FullName), "e"); 814throw new ArgumentException(SR.GetString(SR.InvalidElementType, e.GetType().FullName), "e");
compmod\system\collections\generic\linkedlist.cs (1)
429Type targetType = array.GetType().GetElementType();
compmod\system\componentmodel\ArrayConverter.cs (3)
37return SR.GetString(SR.ArrayConverterText, value.GetType().Name); 53if (value.GetType().IsArray) { 58Type arrayType = value.GetType();
compmod\system\componentmodel\AttributeCollection.cs (3)
245Type aType = attribute.GetType(); 257Type aType = attribute.GetType(); 276Attribute attr = this[attribute.GetType()];
compmod\system\componentmodel\Component.cs (2)
255return s.Name + " [" + GetType().FullName + "]"; 257return GetType().FullName;
compmod\system\componentmodel\ComponentResourceManager.cs (2)
162prop = value.GetType().GetProperty(propName, flags); 167Type t = value.GetType();
compmod\system\componentmodel\design\DesignerOptionService.cs (2)
543return _option.GetType(); 555return _option.GetType();
compmod\system\componentmodel\design\serialization\DesignerSerializerAttribute.cs (1)
80typeId = GetType().FullName + baseType;
compmod\system\componentmodel\design\serialization\InstanceDescriptor.cs (1)
150Debug.Fail("Unrecognized reflection type in instance descriptor: " + member.GetType().Name);
compmod\system\componentmodel\design\serialization\RootDesignerSerializerAttribute.cs (1)
96typeId = GetType().FullName + baseType;
compmod\system\componentmodel\design\ServiceObjectContainer.cs (5)
108if (!(serviceInstance is ServiceCreatorCallback) && !serviceInstance.GetType().IsCOMObject && !serviceType.IsAssignableFrom(serviceInstance.GetType())) { 211if (service != null && !service.GetType().IsCOMObject && !serviceType.IsAssignableFrom(service.GetType())) { 214Debug.Fail("Object " + service.GetType().Name + " was returned from a service creator callback but it does not implement the registered type of " + serviceType.Name);
compmod\system\componentmodel\DesignerAttribute.cs (1)
128typeId = GetType().FullName + baseType;
compmod\system\componentmodel\DesignerCategoryAttribute.cs (1)
100typeId = GetType().FullName + Category;
compmod\system\componentmodel\EditorAttribute.cs (1)
100typeId = GetType().FullName + baseType;
compmod\system\componentmodel\EnumConverter.cs (1)
163if (value is IConvertible && value.GetType() != underlyingType) {
compmod\system\componentmodel\LicenseException.cs (1)
34public LicenseException(Type type, object instance) : this(type, null, SR.GetString(SR.LicExceptionTypeAndInstance, type.FullName, instance.GetType().FullName)) {
compmod\system\componentmodel\LicenseManager.cs (1)
97providerInstances[provider.GetType()] = provider;
compmod\system\componentmodel\LicenseProviderAttribute.cs (1)
87return GetType().FullName + typeName;
compmod\system\componentmodel\MarshalByValueComponent.cs (2)
199return s.Name + " [" + GetType().FullName + "]"; 201return GetType().FullName;
compmod\system\componentmodel\MaskedTextProvider.cs (1)
501Type providerType = this.GetType();
compmod\system\componentmodel\MemberDescriptor.cs (2)
312if (obj.GetType() != GetType()) {
compmod\system\componentmodel\NullableConverter.cs (1)
61if (value == null || value.GetType() == this.simpleType) {
compmod\system\componentmodel\ProvidePropertyAttribute.cs (1)
67return GetType().FullName + propertyName;
compmod\system\componentmodel\ReflectEventDescriptor.cs (1)
199if (EventType != value.GetType()) {
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (3)
187if (defaultValue != null && PropertyType.IsEnum && PropertyType.GetEnumUnderlyingType() == defaultValue.GetType()) { 323if (defaultValue != null && PropertyType.IsEnum && PropertyType.GetEnumUnderlyingType() == defaultValue.GetType()) { 952name = component.GetType().FullName;
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (10)
207argTypes[idx] = args[idx].GetType(); 413return GetClassName(instance.GetType()); 421return GetComponentName(instance.GetType(), instance); 431return GetConverter(instance.GetType(), instance); 456return GetEditor(instance.GetType(), instance, editorBaseType); 475Type componentType = instance.GetType(); 677TypeDescriptor.Trace("Extenders : object has new extenders : {0}", instance.GetType().Name); 739return GetPropertyOwner(instance.GetType(), instance, pd); 1124Type providerType = provider.GetType(); 1819Debug.Fail("Editor " + editor.GetType().FullName + " is not an instance of " + editorBaseType.FullName + " but it is in that base types table.");
compmod\system\componentmodel\RefreshEventArgs.cs (1)
35this.typeChanged = componentChanged.GetType();
compmod\system\componentmodel\ToolboxItemFilterAttribute.cs (1)
102typeId = GetType().FullName + filterString;
compmod\system\componentmodel\TypeConverter.cs (5)
253valueTypeName = value.GetType().FullName; 256throw new NotSupportedException(SR.GetString(SR.ConvertFromException, GetType().Name, valueTypeName)); 270valueTypeName = value.GetType().FullName; 273throw new NotSupportedException(SR.GetString(SR.ConvertToException, GetType().Name, valueTypeName, destinationType.FullName)); 415if (value == null || CanConvertFrom(context, value.GetType())) {
compmod\system\componentmodel\TypeDescriptionProvider.cs (2)
179return GetReflectionType(instance.GetType(), instance); 255return GetTypeDescriptor(instance.GetType(), instance);
compmod\system\componentmodel\TypeDescriptor.cs (57)
405Type type = instance.GetType(); 610Debug.Assert(designerType != null, "It may be okay for the designer not to load, but we failed to load designer for component of type '" + component.GetType().FullName + "' because designer of type '" + da.DesignerTypeName + "'"); 1320Trace("Associations : Associated {0} to {1}", primary.GetType().Name, secondary.GetType().Name); 1352Trace("Associations : Associated {0} to {1}", primary.GetType().Name, designer.GetType().Name); 1466Trace("Attributes : Allocated new attribute collection for {0}", component.GetType().Name); 1658throw new NotSupportedException(SR.GetString(SR.TypeDescriptorUnsupportedRemoteObject, component.GetType().FullName)); 1868Trace("Events : Allocated new event collection for {0}", component.GetType().Name); 2098Trace("Properties : Allocated new property collection for {0}", component.GetType().Name); 2302Type type = instance.GetType(); 2395if (keyType == null) keyType = key.GetType(); 2443Trace("Pipeline : Filter needs to create member list for {0}", instance.GetType().Name); 2476Trace("Pipeline : Attribute Filter results being cached for {0}", instance.GetType().Name); 2612Trace("Pipeline : Filter needs to create member list for {0}", instance.GetType().Name); 2681Trace("Pipeline : Filter results being cached for {0}", instance.GetType().Name); 2827Trace("Pipeline : Merge results being cached for {0}", instance.GetType().Name); 2885Type type = component.GetType(); 3279Type type = instance.GetType(); 3305Attribute memberAttribute = member.Attributes[attribute.GetType()]; 4083if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor")); 4085if (attrs == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetAttributes")); 4106if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor")); 4108if (name == null) name = _instance.GetType().FullName; 4129if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor")); 4150if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor")); 4152if (converter == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter")); 4173if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor")); 4194if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor")); 4220if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor")); 4241if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor")); 4243if (events == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents")); 4269if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor")); 4271if (evts == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents")); 4292if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor")); 4294if (properties == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties")); 4320if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor")); 4322if (properties == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties")); 4343if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetExtendedTypeDescriptor")); 4387if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor")); 4389if (attrs == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetAttributes")); 4413if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor")); 4439if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor")); 4464if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor")); 4466if (converter == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetConverter")); 4490if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor")); 4515if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor")); 4545if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor")); 4570if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor")); 4572if (events == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents")); 4596if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor")); 4598if (events == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetEvents")); 4622if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor")); 4624if (properties == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties")); 4648if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor")); 4650if (properties == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetProperties")); 4674if (desc == null) throw new InvalidOperationException(SR.GetString(SR.TypeDescriptorProviderError, _node.Provider.GetType().FullName, "GetTypeDescriptor"));
compmod\system\diagnostics\FilterElement.cs (1)
20if (Type.GetType(TypeName) != filter.GetType() || InitData != filter.initializeData) {
compmod\system\diagnostics\ListenerElementsCollection.cs (1)
345if (Type.GetType(className) != listener.GetType() || InitData != listener.initializeData) {
compmod\system\diagnostics\TraceSource.cs (2)
183if ((String.IsNullOrEmpty(sourceElement.SwitchType) && internalSwitch.GetType() != typeof(SourceSwitch)) || 184(sourceElement.SwitchType != internalSwitch.GetType().AssemblyQualifiedName)) {
compmod\system\diagnostics\traceutils.cs (1)
141throw new ConfigurationErrorsException(SR.GetString(SR.AttributeNotSupported, key, parent.GetType().FullName));
compmod\system\security\permissions\AspNetHostingPermission.cs (6)
147if (target.GetType() != typeof(AspNetHostingPermission)) { 168if (target.GetType() != typeof(AspNetHostingPermission)) { 190if (target.GetType() != typeof(AspNetHostingPermission)) { 214if (className.IndexOf(this.GetType().FullName, StringComparison.Ordinal) < 0) { 237securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace( '\"', '\'' ));
compmod\system\security\permissions\ResourcePermissionBase.cs (8)
194return (ResourcePermissionBase)Activator.CreateInstance(this.GetType(), BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.CreateInstance, null, null, null); 259if (target.GetType() != this.GetType()) 471if (target.GetType() != this.GetType()) 550Type type = this.GetType(); 570if (target.GetType() != this.GetType())
misc\ClientUtils.cs (1)
134System.Diagnostics.Debug.Assert(Enum.GetValues(enumValue.GetType()).Length == enumValues.Length, "Not all the enum members were passed in.");
net\System\_UriSyntax.cs (1)
345Type type = this.GetType();
net\System\Net\_AutoWebProxyScriptHelper.cs (3)
192return GetType().Module; 455throw new ArgumentException(SR.GetString(SR.net_param_not_string, gmt.GetType().FullName), "gmt"); 463throw new ArgumentException(SR.GetString(SR.net_param_not_string, wd2.GetType().FullName), "wd2");
net\System\Net\_ConnectStream.cs (1)
1921if ((asyncResult.GetType() == typeof(NestedSingleAsyncResult)) || m_Chunked)
net\System\Net\_PooledStream.cs (2)
465throw new ObjectDisposedException(GetType().FullName); 498throw new ObjectDisposedException(GetType().FullName);
net\System\Net\_RegBlobWebProxyDataBuilder.cs (1)
88if (perUser != null && perUser.GetType() == typeof(int) && 0 == (int) perUser)
net\System\Net\_SecureChannel.cs (2)
307Type t = certificate.GetType(); 436if (certificate.GetType() == typeof(X509Certificate2))
net\System\Net\_StreamFramer.cs (4)
62if(m_Transport.GetType() == typeof(NetworkStream)){ 210GlobalLog.Assert(transportResult.AsyncState is WorkerAsyncResult, "StreamFramer::ReadFrameCallback|The state expected to be WorkerAsyncResult, received:{0}.", transportResult.GetType().FullName); 247GlobalLog.Assert(transportResult.AsyncState is WorkerAsyncResult, "StreamFramer::ReadFrameComplete|The state expected to be WorkerAsyncResult, received:{0}.", transportResult.GetType().FullName); 413GlobalLog.Assert(transportResult.AsyncState is WorkerAsyncResult, "StreamFramer::BeginWriteCallback|The state expected to be WorkerAsyncResult, received:{0}.", transportResult.AsyncState.GetType().FullName);
net\System\Net\_TLSstream.cs (1)
557GlobalLog.Assert(nullState == null, "TlsStream::StartWakeupPendingIO|Expected null state but got {0}.", nullState == null ? "null" : (nullState.GetType().FullName));
net\System\Net\AuthenticationManager.cs (1)
412: (thisModule.GetType().FullName + "/" + authSession.UniqueUserId),
net\System\Net\Cache\_CacheStreams.cs (4)
171GlobalLog.Assert(transportResult.AsyncState is InnerAsyncResult, "InnerAsyncResult::ReadCallback|The state expected to be of type InnerAsyncResult, received {0}.", transportResult.GetType().FullName); 276GlobalLog.Assert(m_HeadEOF, "CombinedReadStream::EndRead|m_HeadEOF is false and asyncResult is not of InnerAsyncResult type {0).", asyncResult.GetType().FullName); 526GlobalLog.Assert(transportResult.AsyncState is InnerAsyncResult, "InnerAsyncResult::ReadCallback|The state expected to be of type InnerAsyncResult, received {0}.", transportResult.GetType().FullName); 717GlobalLog.Assert(m_ShadowStreamIsDead, "ForwardingReadStream::EndRead|m_ShadowStreamIsDead is false and asyncResult is not of InnerAsyncResult type {0}.", asyncResult.GetType().FullName);
net\System\Net\Cache\_RequestCacheProtocol.cs (1)
258if(Logging.On) Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_closing_cache_stream, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), "Abort()", stream.GetType().FullName, _Validator.CacheKey));
net\System\Net\Cache\_SingleItemRequestCache.cs (2)
366if (_Disposed) throw new ObjectDisposedException(GetType().Name); 534if (_Disposed) throw new ObjectDisposedException(GetType().Name);
net\System\Net\Cache\IERequestCache.cs (5)
213if(Logging.On) Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_stream, "WinInetCache.UnlockEntry", (stream == null ? "<null>" : stream.GetType().FullName))); 653throw new ObjectDisposedException(GetType().FullName); 675throw new ObjectDisposedException(GetType().FullName); 853throw new ObjectDisposedException(GetType().FullName); 884throw new ObjectDisposedException(GetType().FullName);
net\System\Net\DnsPermission.cs (3)
174if (className.IndexOf( this.GetType().FullName ) < 0) 194securityElement.AddAttribute( "class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace( '\"', '\'' ) );
net\System\Net\filewebresponse.cs (1)
146throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\HttpListener.cs (1)
2513throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\HttpListenerRequest.cs (1)
1203throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\HttpListenerResponse.cs (1)
874throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\HttpWebRequest.cs (7)
2374GlobalLog.Assert(oldResult == null, "HttpWebRequest#{0}::NeedEndSubmitRequest()|Duplicate call. typeof(oldResult):", ValidationHelper.HashString(this), oldResult != null ? oldResult.GetType().ToString() : "null"); 3407GlobalLog.Leave("HttpWebRequest#" + ValidationHelper.HashString(this) + "::SetRequestSubmitDone() - already have a core response", _CoreResponse.GetType().FullName); 3544GlobalLog.Print("HttpWebRequest#" + ValidationHelper.HashString(this) + "::CheckWriteSideResponseProcessing() - Repeated SYNC check _NestedWriteSideCheck = " + _NestedWriteSideCheck + ", response =" + responseData.GetType().FullName); 3548GlobalLog.Print("HttpWebRequest#" + ValidationHelper.HashString(this) + "::CheckWriteSideResponseProcessing() - Response is ready, process here: " + responseData.GetType().FullName); 3588if (responseData.GetType() == typeof(CoreResponseData)) 3598else if (responseData.GetType() != typeof(DBNull)) 5466objectId = baseObject.GetType().Name + "#"
net\System\Net\HttpWebResponse.cs (1)
722throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\IPEndPoint.cs (3)
141throw new ArgumentException(SR.GetString(SR.net_InvalidAddressFamily, socketAddress.Family.ToString(), this.GetType().FullName, this.AddressFamily.ToString()), "socketAddress"); 144throw new ArgumentException(SR.GetString(SR.net_InvalidSocketAddressSize, socketAddress.GetType().FullName, this.GetType().FullName), "socketAddress");
net\System\Net\Logging.cs (1)
285return obj.GetType().Name;
net\System\Net\mail\AlternateView.cs (1)
45throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\mail\AlternateViewCollection.cs (4)
29throw new ObjectDisposedException(this.GetType().FullName); 37throw new ObjectDisposedException(this.GetType().FullName); 46throw new ObjectDisposedException(this.GetType().FullName); 59throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\mail\Attachment.cs (1)
204throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\mail\AttachmentCollection.cs (4)
27throw new ObjectDisposedException(this.GetType().FullName); 35throw new ObjectDisposedException(this.GetType().FullName); 43throw new ObjectDisposedException(this.GetType().FullName); 55throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\mail\LinkedResourceCollection.cs (4)
30throw new ObjectDisposedException(this.GetType().FullName); 38throw new ObjectDisposedException(this.GetType().FullName); 46throw new ObjectDisposedException(this.GetType().FullName); 58throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\mail\MailMessage.cs (2)
242throw new ObjectDisposedException(this.GetType().FullName); 254throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\mail\SmtpClient.cs (5)
425throw new ObjectDisposedException(this.GetType().FullName); 438throw new ObjectDisposedException(this.GetType().FullName); 564throw new ObjectDisposedException(this.GetType().FullName); 575throw new ObjectDisposedException(this.GetType().FullName); 701throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\mail\smtppermission.cs (3)
206if (className.IndexOf(this.GetType().FullName) < 0) { 241securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace( '\"', '\'' ));
net\System\Net\NetWebProxyFinder.cs (1)
257httpWebRequest.UserAgent = this.GetType().FullName + "/" + Environment.Version;
net\System\Net\NetworkInformation\NetworkInformationPermission.cs (3)
196if (className.IndexOf(this.GetType().FullName) < 0) { 229securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace( '\"', '\'' ));
net\System\Net\NetworkInformation\ping.cs (2)
83throw new ObjectDisposedException(GetType().FullName); 93throw new ObjectDisposedException(GetType().FullName);
net\System\Net\NetworkInformation\SystemIPGlobalProperties.cs (1)
415if (result == null || result.AsyncObject == null || result.AsyncObject.GetType() != typeof(SystemIPGlobalProperties)) {
net\System\Net\SecureProtocols\_NegoState.cs (1)
426throw new ArgumentException(SR.GetString(SR.net_io_async_result, result.GetType().FullName), "asyncResult");
net\System\Net\SecureProtocols\_SslState.cs (2)
703throw new ArgumentException(SR.GetString(SR.net_io_async_result, result.GetType().FullName), "asyncResult"); 771if ( message.Done && _ForceBufferingLastHandshakePayload && InnerStream.GetType() == typeof(NetworkStream) && !_PendingReHandshake)
net\System\Net\SecureProtocols\_SslStream.cs (2)
146throw new ArgumentException(SR.GetString(SR.net_io_async_result, asyncResult.GetType().FullName), "asyncResult"); 198throw new ArgumentException(SR.GetString(SR.net_io_async_result, asyncResult.GetType().FullName), "asyncResult");
net\System\Net\SecureProtocols\NegotiateStream.cs (2)
608throw new ArgumentException(SR.GetString(SR.net_io_async_result, asyncResult.GetType().FullName), "asyncResult"); 677throw new ArgumentException(SR.GetString(SR.net_io_async_result, asyncResult.GetType().FullName), "asyncResult");
net\System\Net\SecureProtocols\SslStream.cs (1)
369if (chkCertificateOrBytes != null && chkCertificateOrBytes.GetType() == typeof(byte[]))
net\System\Net\ServicePoint.cs (2)
845if (chkCert != null && chkCert.GetType() == typeof(byte[])) 867if (chkCert != null && chkCert.GetType() == typeof(byte[]))
net\System\Net\SocketPermission.cs (3)
469if (className.IndexOf(this.GetType().FullName) < 0) { 589securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace( '\"', '\'' ));
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (1)
252if (objectsToPin.GetType() == typeof(object[]))
net\System\Net\Sockets\NetworkStream.cs (11)
136throw new ObjectDisposedException(this.GetType().FullName); 325throw new ObjectDisposedException(this.GetType().FullName); 446throw new ObjectDisposedException(this.GetType().FullName); 488throw new ObjectDisposedException(this.GetType().FullName); 562throw new ObjectDisposedException(this.GetType().FullName); 722throw new ObjectDisposedException(this.GetType().FullName); 778throw new ObjectDisposedException(GetType().FullName); 842throw new ObjectDisposedException(this.GetType().FullName); 907throw new ObjectDisposedException(this.GetType().FullName); 969throw new ObjectDisposedException(this.GetType().FullName); 1027throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\Sockets\Socket.cs (79)
348throw new ObjectDisposedException(this.GetType().FullName); 390throw new ObjectDisposedException(this.GetType().FullName); 435throw new ObjectDisposedException(this.GetType().FullName); 515throw new ObjectDisposedException(this.GetType().FullName); 851throw new ObjectDisposedException(this.GetType().FullName); 920throw new ObjectDisposedException(GetType().FullName); 992throw new ObjectDisposedException(this.GetType().FullName); 1044throw new ObjectDisposedException(this.GetType().FullName); 1068throw new ObjectDisposedException(this.GetType().FullName); 1089throw new ObjectDisposedException(this.GetType().FullName); 1166throw new ObjectDisposedException(this.GetType().FullName); 1217throw new ObjectDisposedException(this.GetType().FullName); 1309throw new ObjectDisposedException(this.GetType().FullName); 1423throw new ObjectDisposedException(this.GetType().FullName); 1522throw new ObjectDisposedException(this.GetType().FullName); 1601throw new ObjectDisposedException(this.GetType().FullName); 1751throw new ObjectDisposedException(this.GetType().FullName); 1844throw new ObjectDisposedException(this.GetType().FullName); 1958throw new ObjectDisposedException(this.GetType().FullName); 2062throw new ObjectDisposedException(this.GetType().FullName); 2186throw new ObjectDisposedException(this.GetType().FullName); 2241throw new ObjectDisposedException(this.GetType().FullName); 2302throw new ObjectDisposedException(this.GetType().FullName); 2315throw new ObjectDisposedException(this.GetType().FullName); 2359throw new ObjectDisposedException(this.GetType().FullName); 2413throw new ObjectDisposedException(this.GetType().FullName); 2464throw new ObjectDisposedException(this.GetType().FullName); 2499throw new ObjectDisposedException(this.GetType().FullName); 2545throw new ObjectDisposedException(this.GetType().FullName); 2730throw new ObjectDisposedException(this.GetType().FullName); 2797throw new ObjectDisposedException(GetType().FullName); 2873throw new ObjectDisposedException(this.GetType().FullName); 2957(m_RightEndPoint != null || remoteEP.GetType() == typeof(IPEndPoint)) && 3082throw new ObjectDisposedException(this.GetType().FullName); 3123throw new ObjectDisposedException(this.GetType().FullName); 3148throw new ObjectDisposedException(this.GetType().FullName); 3220throw new ObjectDisposedException(this.GetType().FullName); 3271throw new ObjectDisposedException(this.GetType().FullName); 3351throw new ObjectDisposedException(this.GetType().FullName); 3442throw new ObjectDisposedException(this.GetType().FullName); 3487throw new ObjectDisposedException(this.GetType().FullName); 3597throw new ObjectDisposedException(this.GetType().FullName); 3601throw new ObjectDisposedException(this.GetType().FullName); 3706throw new ObjectDisposedException(this.GetType().FullName); 3824throw new ObjectDisposedException(this.GetType().FullName); 3885throw new ObjectDisposedException(this.GetType().FullName); 3970throw new ObjectDisposedException(this.GetType().FullName); 4094throw new ObjectDisposedException(this.GetType().FullName); 4197throw new ObjectDisposedException(this.GetType().FullName); 4240throw new ObjectDisposedException(this.GetType().FullName); 4334throw new ObjectDisposedException(this.GetType().FullName); 4469throw new ObjectDisposedException(this.GetType().FullName); 4536throw new ObjectDisposedException(this.GetType().FullName); 4660throw new ObjectDisposedException(this.GetType().FullName); 4772throw new ObjectDisposedException(this.GetType().FullName); 4917throw new ObjectDisposedException(this.GetType().FullName); 5026throw new ObjectDisposedException(this.GetType().FullName); 5128throw new ObjectDisposedException(this.GetType().FullName); 5281otherException = new ObjectDisposedException(this.GetType().FullName); 5354throw new ObjectDisposedException(this.GetType().FullName); 5476throw new ObjectDisposedException(this.GetType().FullName); 5560throw new ObjectDisposedException(this.GetType().FullName); 5634throw new ObjectDisposedException(this.GetType().FullName); 6098throw new ObjectDisposedException(this.GetType().FullName); 6825throw new ArgumentException(SR.GetString(SR.net_sockets_select, socketList[current].GetType().FullName, typeof(System.Net.Sockets.Socket).FullName), "socketList"); 6888GlobalLog.Assert(endPointSnapshot.GetType() == typeof(IPEndPoint), "Socket#{0}::BeginConnectEx()|Socket not bound and endpoint not IPEndPoint.", ValidationHelper.HashString(this)); 6982throw new ObjectDisposedException(this.GetType().FullName); 7216throw new ObjectDisposedException(this.GetType().FullName); 7686throw new ObjectDisposedException(GetType().FullName); 7767throw new ObjectDisposedException(GetType().FullName); 7928throw new ObjectDisposedException(GetType().FullName); 7977throw new ObjectDisposedException(GetType().FullName); 8049throw new ObjectDisposedException(GetType().FullName); 8141throw new ObjectDisposedException(GetType().FullName); 8219throw new ObjectDisposedException(GetType().FullName); 8292throw new ObjectDisposedException(GetType().FullName); 8362throw new ObjectDisposedException(GetType().FullName); 8992throw new ObjectDisposedException(GetType().FullName); 9007throw new ObjectDisposedException(GetType().FullName);
net\System\Net\Sockets\TCPClient.cs (4)
188throw new ObjectDisposedException(this.GetType().FullName); 320throw new ObjectDisposedException(this.GetType().FullName); 341throw new ObjectDisposedException(this.GetType().FullName); 428throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\Sockets\UDPClient.cs (17)
311throw new ObjectDisposedException(this.GetType().FullName); 438throw new ObjectDisposedException(this.GetType().FullName); 466throw new ObjectDisposedException(this.GetType().FullName); 513throw new ObjectDisposedException(this.GetType().FullName); 545throw new ObjectDisposedException(this.GetType().FullName); 589throw new ObjectDisposedException(this.GetType().FullName); 613throw new ObjectDisposedException(this.GetType().FullName); 678throw new ObjectDisposedException(this.GetType().FullName); 700throw new ObjectDisposedException(this.GetType().FullName); 738throw new ObjectDisposedException(this.GetType().FullName); 760throw new ObjectDisposedException(this.GetType().FullName); 798throw new ObjectDisposedException(this.GetType().FullName); 838throw new ObjectDisposedException(this.GetType().FullName); 865throw new ObjectDisposedException(this.GetType().FullName); 902throw new ObjectDisposedException(this.GetType().FullName); 935throw new ObjectDisposedException(this.GetType().FullName); 977throw new ObjectDisposedException(this.GetType().FullName);
net\System\Net\UnsafeNativeMethods.cs (2)
267throw new ObjectDisposedException(GetType().FullName); 280throw new ObjectDisposedException(GetType().FullName);
net\System\Net\webclient.cs (1)
61if (this.GetType() == typeof(WebClient)) {
net\System\Net\WebPermission.cs (7)
803if (className.IndexOf(this.GetType().FullName) < 0) { 900securityElement.AddAttribute( "class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace( '\"', '\'' ) ); 986if (uriToCheck.GetType() == uriPattern.GetType()) 1046if (a.GetType() == b.GetType())
net\System\Net\WebSockets\ClientWebSocket.cs (3)
139throw new ObjectDisposedException(GetType().FullName); 179throw new ObjectDisposedException(GetType().FullName); 388throw new ObjectDisposedException(GetType().FullName);
net\System\Net\WebSockets\WebSocketBase.cs (4)
1264SR.GetString(SR.net_WebSockets_InvalidState_ClosedOrAborted, GetType().FullName, State)); 1273SR.GetString(SR.net_WebSockets_InvalidState_ClosedOrAborted, GetType().FullName, WebSocketState.Aborted), 1463throw new ObjectDisposedException(GetType().FullName); 2475throw new ObjectDisposedException(GetType().FullName);
net\System\Net\WebSockets\WebSocketBuffer.cs (1)
568throw new ObjectDisposedException(GetType().FullName);
net\System\Net\WebSockets\WebSocketConnectionStream.cs (2)
48m_IsFastPathAllowed = m_ConnectStream.Connection.NetworkStream.GetType() == s_NetworkStreamType; 493m_SupportsMultipleWrites = connection.NetworkStream.GetType().Assembly == s_NetworkStreamType.Assembly;
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (2)
1068throw new ObjectDisposedException(GetType().FullName); 1249m_CurrentStream.GetType().Name, ValidationHelper.HashString(m_CurrentStream)));
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (2)
886SR.GetString(SR.net_WebSockets_InvalidState_ClosedOrAborted, webSocket.GetType().FullName, webSocket.State)); 893SR.GetString(SR.net_WebSockets_InvalidState_ClosedOrAborted, webSocket.GetType().FullName, webSocket.State),
net\System\URI.cs (1)
2682throw new UriFormatException(SR.GetString(SR.net_uri_PortOutOfRange, m_Syntax.GetType().FullName, portStr));
net\System\UriExt.cs (1)
482throw new InvalidOperationException(SR.GetString(SR.net_uri_UserDrivenParsing, this.GetType().FullName));
net\System\UriScheme.cs (2)
97throw new InvalidOperationException(SR.GetString(SR.net_uri_UserDrivenParsing, this.GetType().FullName)); 145throw new InvalidOperationException(SR.GetString(SR.net_uri_UserDrivenParsing, this.GetType().FullName));
parent\parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
612throw new ObjectDisposedException(this.GetType().Name);
security\system\security\cryptography\x509\x509certificate2collection.cs (18)
420if (findValue.GetType() != typeof(string)) 431if (findValue.GetType() != typeof(string)) 440if (findValue.GetType() != typeof(string)) 448if (findValue.GetType() != typeof(string)) 457if (findValue.GetType() != typeof(string)) 465if (findValue.GetType() != typeof(string)) 477if (findValue.GetType() != typeof(DateTime)) 485if (findValue.GetType() != typeof(DateTime)) 493if (findValue.GetType() != typeof(DateTime)) 501if (findValue.GetType() != typeof(string)) 508if (findValue.GetType() != typeof(string)) 521if (findValue.GetType() != typeof(string)) 534if (findValue.GetType() != typeof(string)) 548if (findValue.GetType() == typeof(string)) { 569} else if (findValue.GetType() == typeof(X509KeyUsageFlags)) { 571} else if (findValue.GetType() == typeof(uint) || findValue.GetType() == typeof(int)) { 581if (findValue.GetType() != typeof(string))
security\system\security\permissions\storepermission.cs (6)
67throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName)); 82throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName)); 99throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName)); 109securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace('\"', '\'')); 124if (className == null || className.IndexOf(this.GetType().FullName, StringComparison.Ordinal) == -1)
security\system\security\permissions\typedescriptorpermission.cs (6)
123throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName)); 141throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName)); 161throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName)); 180securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace('\"', '\'')); 196if (className == null || className.IndexOf(this.GetType().FullName, StringComparison.Ordinal) == -1)
services\io\system\io\FileSystemWatcher.cs (1)
944throw new ObjectDisposedException(GetType().Name);
services\monitoring\system\diagnosticts\EventLogInternal.cs (2)
1282throw new ObjectDisposedException(GetType().Name); 1323throw new ObjectDisposedException(GetType().Name);
services\monitoring\system\diagnosticts\Process.cs (3)
1733throw new ObjectDisposedException(GetType().Name); 1990throw new ObjectDisposedException(GetType().Name); 2185throw new ObjectDisposedException(GetType().Name);
services\timers\system\timers\Timer.cs (1)
128throw new ObjectDisposedException(GetType().Name);
sys\system\configuration\ApplicationSettingsBase.cs (4)
371SettingChangingEventArgs e = new SettingChangingEventArgs(propertyName, this.GetType().FullName, SettingsKey, value, false); 463sp.Attributes.Add(attr.GetType(), attr); 487Type type = this.GetType(); 577_init.Attributes.Add(attr.GetType(), attr);
sys\system\configuration\SettingsPropertyValue.cs (2)
132if (val != null && !Property.PropertyType.IsAssignableFrom(val.GetType())) // is it the correct type 156if (val != null && !Property.PropertyType.IsAssignableFrom(val.GetType())) // is it the correct type
sys\system\io\ports\SerialPort.cs (1)
304((value.CodePage < 50000 || value.CodePage == 54936)&& value.GetType().Assembly == typeof(String).Assembly))) {
System.Activities (160)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (1)
441EnsureTypeReferenced(constantExpr.Value.GetType(), true, typeReferences);
System\Activities\Activity.cs (2)
1681if (ReflectedInformation.OverloadGroupAttributeType.IsAssignableFrom(attribute.GetType())) 1899throw FxTrace.Exception.Argument("variable", SR.ConvertVariableToValueExpressionFailed(variable.GetType().FullName, typeof(Activity<TResult>).FullName));
System\Activities\ActivityContext.cs (2)
265throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CannotSetValueToLocation(value != null ? value.GetType() : typeof(T), locationReference.Name, locationReference.Type))); 446new ObjectDisposedException(this.GetType().FullName, SR.AECDisposed));
System\Activities\ActivityDelegate.cs (1)
56this.displayName = this.GetType().Name;
System\Activities\ActivityInstance.cs (4)
479this.ownerName = this.Activity.GetType().Name; 1111if (activity.GetType().Name != this.OwnerName) 1250TD.InArgumentBound(argument.Name, this.Activity.GetType().ToString(), this.Activity.DisplayName, this.Id, argumentValue); 1295TD.ActivityCompleted(this.Activity.GetType().ToString(), this.Activity.DisplayName, this.Id, this.State.GetStateName());
System\Activities\ActivityUtilities.cs (1)
482return GetDisplayName(source.GetType());
System\Activities\Argument.cs (1)
301new ValidationError(SR.ArgumentLocationExpressionTypeMismatch(expectedType.FullName, actualExpression.GetType().FullName), false, this.RuntimeArgument.Name, owner));
System\Activities\AsyncCodeActivity.cs (3)
248TD.CompleteBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope)); 256TD.ScheduleBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope)); 264TD.StartBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope));
System\Activities\CodeActivityPublicEnvironmentAccessor.cs (1)
170Fx.Assert(activity is CodeActivity || (codeActivityOfTType != null && codeActivityOfTType.IsAssignableFrom(activity.GetType())), "Expected CodeActivity or CodeActivity<T>");
System\Activities\Debugger\DebugInfo.cs (1)
86if (TryEvaluateExpression(expressionString, result.GetType(), locationReferenceEnvironment, context, out resultLocation))
System\Activities\Debugger\DebugManager.cs (8)
185if (enumerator1.Current.GetType() != enumerator2.Current.GetType()) 189"Unmatched type: " + enumerator1.Current.GetType().FullName + 190" vs " + enumerator2.Current.GetType().FullName + "\n"); 235displayName = activity.GetType().Name; 260object[] objects = activity.GetType().GetCustomAttributes(typeof(DebuggerStepThroughAttribute), false); 486(activity.GetType().IsGenericType && activity.GetType().GetGenericTypeDefinition() == typeof(ParallelForEach<>));
System\Activities\Debugger\SourceLocationProvider.cs (6)
98localAssembly = rootActivity.GetType().Assembly; 102localAssembly = rootActivity.Parent.GetType().Assembly; 333if (enumerator1.Current.GetType() != enumerator2.Current.GetType()) 337"Unmatched type: " + enumerator1.Current.GetType().FullName + 338" vs " + enumerator2.Current.GetType().FullName + "\n");
System\Activities\Debugger\XamlDebuggerXmlReader.cs (1)
376Type targetType = target.GetType();
System\Activities\DynamicActivityTypeDescriptor.cs (1)
131propertyDescriptors.Add(new DynamicActivityPropertyDescriptor(property, this.owner.GetType()));
System\Activities\DynamicUpdate\ActivityComparer.cs (2)
305if (currentActivity.GetType() != originalActivity.GetType() || currentActivity.RelationshipToParent != originalActivity.RelationshipToParent)
System\Activities\DynamicUpdate\DynamicUpdateMapBuilder.cs (4)
485if (originalElement.GetType() != currentElement.GetType()) 489SR.DUActivityTypeMismatch(currentElement.GetType(), originalElement.GetType()));
System\Activities\DynamicUpdate\NativeActivityUpdateContext.cs (1)
1226new ObjectDisposedException(this.GetType().FullName, SR.NAUCDisposed));
System\Activities\Expressions\ArrayItemReference.cs (1)
62throw FxTrace.Exception.AsError(new InvalidOperationException(SR.MemberCannotBeNull("Array", this.GetType().Name, this.DisplayName)));
System\Activities\Expressions\ArrayItemValue.cs (1)
58throw FxTrace.Exception.AsError(new InvalidOperationException(SR.MemberCannotBeNull("Array", this.GetType().Name, this.DisplayName)));
System\Activities\Expressions\CompiledExpressionInvoker.cs (1)
83throw FxTrace.Exception.AsError(new NotSupportedException(SR.TextExpressionMetadataRequiresCompilation(this.expressionActivity.GetType().Name)));
System\Activities\Expressions\ExpressionServices.cs (25)
282string argumentError = TryConvertArguments(methodCallExpressionBody.Arguments, indexerReference.Indices, methodCallExpressionBody.GetType(), 1, null, throwOnError); 302string argumentError = TryConvertArguments(methodCallExpressionBody.Arguments, indexerReference.Indices, methodCallExpressionBody.GetType(), 1, null, throwOnError); 339string argumentError = TryConvertArguments(methodCallExpression.Arguments, reference.Indices, methodCallExpression.GetType(), 1, null, throwOnError); 1071throw FxTrace.Exception.AsError(new NotSupportedException(SR.UnsupportedMemberExpressionWithType(memberExpressionBody.Member.GetType().Name))); 1075return SR.UnsupportedMemberExpressionWithType(memberExpressionBody.Member.GetType().Name); 1177throw FxTrace.Exception.AsError(new NotSupportedException(SR.UnsupportedMemberExpressionWithType(memberExpressionBody.Member.GetType().Name))); 1181return SR.UnsupportedMemberExpressionWithType(memberExpressionBody.Member.GetType().Name); 1242throw FxTrace.Exception.AsError(new ValidationException(SR.MethodInfoRequired(methodCallExpression.GetType().Name))); 1246return SR.MethodInfoRequired(methodCallExpression.GetType().Name); 1253throw FxTrace.Exception.AsError(new ValidationException(SR.MethodNameRequired(methodInfo.GetType().Name))); 1257return SR.MethodNameRequired(methodInfo.GetType().Name); 1270throw FxTrace.Exception.AsError(new ValidationException(SR.ArgumentNumberRequiresTheSameAsParameterNumber(methodCallExpression.GetType().Name))); 1274return SR.ArgumentNumberRequiresTheSameAsParameterNumber(methodCallExpression.GetType().Name); 1278string error = TryConvertArguments(methodCallExpression.Arguments, invokeMethod.Parameters, methodCallExpression.GetType(), 1, parameterInfoArray, throwOnError); 1290throw FxTrace.Exception.AsError(new ValidationException(SR.InvalidGenericTypeInfo(methodCallExpression.GetType().Name))); 1294return SR.InvalidGenericTypeInfo(methodCallExpression.GetType().Name); 1337throw FxTrace.Exception.AsError(new ValidationException(SR.InvalidExpressionProperty(invocationExpression.GetType().Name))); 1341return SR.InvalidExpressionProperty(invocationExpression.GetType().Name); 1359error = TryConvertArguments(invocationExpression.Arguments, invokeMethod.Parameters, invocationExpression.GetType(), 1, null, throwOnError); 1415throw FxTrace.Exception.AsError(new ValidationException(SR.ArgumentNumberRequiresTheSameAsParameterNumber(newExpression.GetType().Name))); 1419return SR.ArgumentNumberRequiresTheSameAsParameterNumber(newExpression.GetType().Name); 1424string error = TryConvertArguments(newExpression.Arguments, newActivity.Arguments, newExpression.GetType(), 0, parameterInfoArray, throwOnError); 1437string error = TryConvertArguments(newArrayExpression.Expressions, newArrayActivity.Bounds, newArrayExpression.GetType(), 0, null, throwOnError); 1503Type valueType = value.GetType(); 1561Type valueType = value.GetType();
System\Activities\Expressions\FieldReference.cs (2)
40metadata.AddValidationError(SR.TargetTypeCannotBeEnum(this.GetType().Name, this.DisplayName)); 44metadata.AddValidationError(SR.TargetTypeIsValueType(this.GetType().Name, this.DisplayName));
System\Activities\Expressions\FieldValue.cs (2)
37metadata.AddValidationError(SR.TargetTypeCannotBeEnum(this.GetType().Name, this.DisplayName)); 75throw FxTrace.Exception.AsError(new InvalidOperationException(SR.MemberCannotBeNull("Operand", this.GetType().Name, this.DisplayName)));
System\Activities\Expressions\IndexerReference.cs (3)
68metadata.AddValidationError(SR.TargetTypeIsValueType(this.GetType().Name, this.DisplayName)); 72metadata.AddValidationError(SR.IndicesAreNeeded(this.GetType().Name, this.DisplayName)); 110throw FxTrace.Exception.AsError(new InvalidOperationException(SR.MemberCannotBeNull("Operand", this.GetType().Name, this.DisplayName)));
System\Activities\Expressions\Literal.cs (2)
74valueType = this.Value.GetType(); 157valueType = this.Value.GetType();
System\Activities\Expressions\MultidimensionalArrayItemReference.cs (3)
54metadata.AddValidationError(SR.IndicesAreNeeded(this.GetType().Name, this.DisplayName)); 79throw FxTrace.Exception.AsError(new InvalidOperationException(SR.MemberCannotBeNull("Array", this.GetType().Name, this.DisplayName))); 82Type realItemType = items.GetType().GetElementType();
System\Activities\Expressions\PropertyReference.cs (2)
46metadata.AddValidationError(SR.TargetTypeCannotBeEnum(this.GetType().Name, this.DisplayName)); 50metadata.AddValidationError(SR.TargetTypeIsValueType(this.GetType().Name, this.DisplayName));
System\Activities\Expressions\PropertyValue.cs (2)
36metadata.AddValidationError(SR.TargetTypeCannotBeEnum(this.GetType().Name, this.DisplayName)); 84throw FxTrace.Exception.AsError(new InvalidOperationException(SR.MemberCannotBeNull("Operand", this.GetType().Name, this.DisplayName)));
System\Activities\Expressions\ValueTypeFieldReference.cs (1)
44metadata.AddValidationError(SR.TargetTypeCannotBeEnum(this.GetType().Name, this.DisplayName));
System\Activities\Expressions\ValueTypeIndexerReference.cs (1)
72metadata.AddValidationError(SR.IndicesAreNeeded(this.GetType().Name, this.DisplayName));
System\Activities\Expressions\ValueTypePropertyReference.cs (1)
54metadata.AddValidationError(SR.TargetTypeCannotBeEnum(this.GetType().Name, this.DisplayName));
System\Activities\ExpressionUtilities.cs (1)
600string targetObjectTypeName = this.targetObject.GetType().Name;
System\Activities\Handle.cs (1)
36return this.GetType().FullName;
System\Activities\Hosting\SymbolResolver.cs (1)
107valueType = value.GetType();
System\Activities\Hosting\WorkflowInstance.cs (1)
549ActivityInfo faultSourceInfo = new ActivityInfo(source.DisplayName, source.Id, sourceInstanceId, source.GetType().FullName);
System\Activities\Hosting\WorkflowInstanceExtensionManager.cs (1)
155extensionTypes.Add(this.SingletonExtensions[i].GetType());
System\Activities\Hosting\WorkflowInstanceExtensionProvider.cs (1)
69base.GeneratedTypeMatchesDeclaredType = object.ReferenceEquals(value.GetType(), this.Type);
System\Activities\NativeActivityContext.cs (1)
2289throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CanInduceIdleNotSpecified(associatedActivity.GetType().FullName)));
System\Activities\Runtime\ActivityExecutor.cs (17)
373throw FxTrace.Exception.AsError(new InvalidOperationException(SR.EmptyIdReturnedFromHost(this.host.GetType()))); 1272TD.RuntimeTransactionSet(transactionOwner.Activity.GetType().ToString(), transactionOwner.Activity.DisplayName, transactionOwner.Id, isolationScope.Activity.GetType().ToString(), isolationScope.Activity.DisplayName, isolationScope.Id); 1301TD.RuntimeTransactionCompletionRequested(callbackOwner.Activity.GetType().ToString(), callbackOwner.Activity.DisplayName, callbackOwner.Id); 1340TD.RuntimeTransactionCompletionRequested(instance.Activity.GetType().ToString(), instance.Activity.DisplayName, instance.Id); 2848TD.ActivityScheduled(parent.Activity.GetType().ToString(), parent.Activity.DisplayName, parent.Id, activity.GetType().ToString(), activity.DisplayName, scheduledInstanceId); 2852TD.ActivityScheduled(string.Empty, string.Empty, string.Empty, activity.GetType().ToString(), activity.DisplayName, scheduledInstanceId); 3354TD.CompleteCancelActivityWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 3362TD.ScheduleCancelActivityWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 3370TD.StartCancelActivityWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 3448TD.ScheduleExecuteActivityWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 3456TD.StartExecuteActivityWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 3464TD.CompleteExecuteActivityWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 4317TD.CompleteTransactionContextWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 4325TD.ScheduleTransactionContextWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 4333TD.StartTransactionContextWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id);
System\Activities\Runtime\BookmarkManager.cs (1)
177TD.CreateBookmark(owningInstance.Activity.GetType().ToString(), owningInstance.Activity.DisplayName, owningInstance.Id, ActivityUtilities.GetTraceString(bookmark), ActivityUtilities.GetTraceString((BookmarkScope)bookmark.Scope));
System\Activities\Runtime\BookmarkWorkItem.cs (3)
63TD.CompleteBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(this.bookmark), ActivityUtilities.GetTraceString(this.bookmark.Scope)); 71TD.ScheduleBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(this.bookmark), ActivityUtilities.GetTraceString(this.bookmark.Scope)); 79TD.StartBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(this.bookmark), ActivityUtilities.GetTraceString(this.bookmark.Scope));
System\Activities\Runtime\CallbackWrapper.cs (3)
242declaringType = targetInstance.GetType(); 254callbackAssembly = targetInstance.GetType().Assembly; 312Type activityType = this.ActivityInstance.Activity.GetType();
System\Activities\Runtime\CompletionCallbackWrapper.cs (6)
165TD.CompleteCompletionWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, this.completedInstance.Activity.GetType().ToString(), this.completedInstance.Activity.DisplayName, this.completedInstance.Id); 173TD.ScheduleCompletionWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, this.completedInstance.Activity.GetType().ToString(), this.completedInstance.Activity.DisplayName, this.completedInstance.Id); 181TD.StartCompletionWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, this.completedInstance.Activity.GetType().ToString(), this.completedInstance.Activity.DisplayName, this.completedInstance.Id);
System\Activities\Runtime\FaultCallbackWrapper.cs (6)
95TD.CompleteFaultWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, this.originalExceptionSource.ActivityInstance.Activity.GetType().ToString(), this.originalExceptionSource.ActivityInstance.Activity.DisplayName, this.originalExceptionSource.ActivityInstance.Id, this.propagatedException); 103TD.ScheduleFaultWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, this.originalExceptionSource.ActivityInstance.Activity.GetType().ToString(), this.originalExceptionSource.ActivityInstance.Activity.DisplayName, this.originalExceptionSource.ActivityInstance.Id, this.propagatedException); 111TD.StartFaultWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, this.originalExceptionSource.ActivityInstance.Activity.GetType().ToString(), this.originalExceptionSource.ActivityInstance.Activity.DisplayName, this.originalExceptionSource.ActivityInstance.Id, this.propagatedException);
System\Activities\Runtime\LocationEnvironment.cs (1)
519new ObjectDisposedException(this.GetType().FullName, SR.EnvironmentDisposed));
System\Activities\Runtime\WorkItem.cs (3)
238TD.ScheduleRuntimeWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 248TD.StartRuntimeWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id); 258TD.CompleteRuntimeWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id);
System\Activities\Statements\CompensableActivity.cs (1)
659return (this.Elements.Get(context).ElementAt(this.Index.Get(context)).GetType() == typeof(CompensationParticipant));
System\Activities\Statements\Compensate.cs (1)
142new If(env => (elements.Get(env).ElementAt(index.Get(env))).GetType() == typeof(CompensationParticipant))
System\Activities\Statements\Confirm.cs (1)
151new If(env => (elements.Get(env).ElementAt(index.Get(env))).GetType() == typeof(CompensationParticipant))
System\Activities\Statements\Flowchart.cs (2)
147if (originalFlowchart.reachableNodes[originalIndex].GetType() != node.GetType())
System\Activities\Statements\MethodResolver.cs (2)
199metadata.AddValidationError(SR.TargetTypeAndTargetObjectAreMutuallyExclusive(this.Parent.GetType().Name, this.Parent.DisplayName)); 215metadata.AddValidationError(SR.OneOfTwoPropertiesMustBeSet("TargetObject", "TargetType", this.Parent.GetType().Name, this.Parent.DisplayName));
System\Activities\Statements\Throw.cs (1)
41throw FxTrace.Exception.AsError(new InvalidOperationException(SR.MemberCannotBeNull("Exception", this.GetType().Name, this.DisplayName)));
System\Activities\Statements\TransactionScope.cs (1)
453return this.Input.Get(context).GetType();
System\Activities\Tracking\ActivityInfo.cs (1)
131this.typeName = this.Activity.GetType().FullName;
System\Activities\Tracking\EtwTrackingParticipant.cs (1)
173Type valueType = item.Value.GetType();
System\Activities\Tracking\TrackingProvider.cs (2)
185TD.TrackingRecordRaised(preparedRecord.ToString(), participant.GetType().ToString()); 398TD.TrackingRecordRaised(preparedRecord.ToString(), participant.GetType().ToString());
System\Activities\Validation\ActivityValidationServices.cs (2)
395ValidationError constraintExceptionValidationError = new ValidationError(SR.InternalConstraintException(constraint.DisplayName, toValidate.GetType().FullName, toValidate.DisplayName, e.ToString()), false) 513Type currentType = toValidate.GetType();
System\Activities\WorkflowApplication.cs (1)
5284TD.WorkflowApplicationUnhandledException(instance.Id.ToString(), source.GetType().ToString(), source.DisplayName, action.ToString(), exception);
System\Activities\WorkflowDataContext.cs (1)
186new ObjectDisposedException(this.GetType().FullName, SR.WDCDisposed));
System\Activities\XamlIntegration\ActivityWithResultValueSerializer.cs (1)
39throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CannotSerializeExpression(value.GetType())));
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
183xamlObject != null ? xamlObject.GetType().FullName : string.Empty));
System\Activities\XamlIntegration\ArgumentValueSerializer.cs (1)
34throw FxTrace.Exception.Argument("value", SR.CannotSerializeExpression(value.GetType()));
System\Activities\XamlIntegration\ExpressionTreeRewriter.cs (1)
43if (node.Value != null && node.Value.GetType() == typeof(InlinedLocationReference))
System\Activities\XamlIntegration\TextExpressionCompiler.cs (5)
240throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CompiledExpressionsCacheMetadataException(this.settings.Activity.GetType().AssemblyQualifiedName, e.ToString()))); 280throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CompiledExpressionsActivityException(e.GetType().FullName, this.settings.Activity.GetType().AssemblyQualifiedName, e.ToString()))); 2045types = this.settings.Activity.GetType().Assembly.GetTypes(); 2095((nsReference.Assembly == this.settings.Activity.GetType().Assembly.FullName) || 2096(nsReference.Assembly == this.settings.Activity.GetType().Assembly.GetName().Name))
System.Activities.Core.Presentation (32)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (11)
135if (typeof(FlowStep).IsAssignableFrom(currentFlowElement.GetType())) 149else if (typeof(FlowDecision).IsAssignableFrom(currentFlowElement.GetType())) 175else if (GenericFlowSwitchHelper.IsGenericFlowSwitch(currentFlowElement.GetType())) 177GenericFlowSwitchHelper.Copy(currentFlowElement.GetType().GetGenericArguments()[0], currentFlowElement, clonedFlowElements); 190if (typeof(FlowStep).IsAssignableFrom(currentFlowElement.GetType())) 205else if (typeof(FlowDecision).IsAssignableFrom(currentFlowElement.GetType())) 238else if (GenericFlowSwitchHelper.IsGenericFlowSwitch(currentFlowElement.GetType())) 240GenericFlowSwitchHelper.ReferenceCopy(currentFlowElement.GetType().GetGenericArguments()[0], 258typeof(Activity).IsAssignableFrom(p.GetType()) || 259typeof(FlowNode).IsAssignableFrom(p.GetType()) || 528Type flowElementType = flowElement.GetType();
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (1)
176if (adornerType.IsAssignableFrom(adorner.GetType()))
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (4)
187ModelItem linkModelItem = new FakeModelItemImpl(modelTreeItem.ModelTreeManager, link.GetType(), link, null); 467ModelItem linkModelItem = new FakeModelItemImpl(modelTreeItem.ModelTreeManager, link.GetType(), link, null); 478ModelItem linkModelItem = new FakeModelItemImpl(modelTreeItem.ModelTreeManager, link.GetType(), link, null); 650ModelItem linkModelItem = new FakeModelItemImpl(modelTreeItem.ModelTreeManager, link.GetType(), link, null);
System\Activities\Core\Presentation\FlowchartDesigner.ModelChanges.cs (2)
218ModelItem linkModelItem = new FakeModelItemImpl(modelTreeItem.ModelTreeManager, link.GetType(), link, null); 258ModelItem linkModelItem = new FakeModelItemImpl(modelTreeItem.ModelTreeManager, link.GetType(), link, null);
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (3)
634removeConnectionPointsAdorner = !typeof(ConnectionPointsAdorner).IsAssignableFrom(Mouse.DirectlyOver.GetType()); 1642if (typeof(Activity).IsAssignableFrom(droppedObject.GetType())) 1656else if (typeof(FlowNode).IsAssignableFrom(droppedObject.GetType()))
System\Activities\Core\Presentation\GenericFlowSwitchHelper.cs (1)
382result = XamlUtilities.GetConverter(caseObject.GetType()).ConvertToString(caseObject);
System\Activities\Core\Presentation\MorphHelpers.cs (1)
44Type expressionType = originalExpression.GetType();
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (1)
179Type type = (p is Type) ? (Type)p : p.GetType();
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (1)
181if (adornerType.IsAssignableFrom(adorner.GetType()))
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (3)
1290removeConnectionPointsAdorner = !typeof(ConnectionPointsAdorner).IsAssignableFrom(Mouse.DirectlyOver.GetType()); 1930if (droppedObject.GetType() == typeof(State)) 1939else if (droppedObject.GetType() == typeof(FinalState))
System\ServiceModel\Activities\Presentation\BindingEditor.xaml.cs (1)
106bindingType = newValue.GetType();
System\ServiceModel\Activities\Presentation\Converters\ReceiveParametersContentSearchableStringConverter.cs (1)
23results.Add(param.Value.GetType().Name);
System\ServiceModel\Activities\Presentation\Converters\SendParametersContentSearchableStringConverter.cs (1)
23results.Add(param.Value.GetType().Name);
System\ServiceModel\Activities\Presentation\ServiceContractImporter.cs (1)
118TargetType = generatedActivity.GetType(),
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (1)
559throw FxTrace.Exception.AsError(new InstancePersistenceException(SR.CannotPromoteAsSqlVariant(propertyValue.Value.GetType().ToString(), name.ToString())));
System.Activities.Presentation (137)
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (1)
55activityDelegate.GetType().GetProperty(argument.Name).SetValue(activityDelegate, CreateDelegateArgument(argument), null);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (2)
571service.GetType().FullName))); 693serviceInstance.GetType().FullName)));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (3)
227Fx.Assert(methodInfo != null, "It looks like MemberType did not match the type of MemberInfo: " + info.GetType().Name); 237Fx.Assert(propInfo != null, "It looks like MemberType did not match the type of MemberInfo: " + info.GetType().Name); 247Fx.Assert(eventInfo != null, "It looks like MemberType did not match the type of MemberInfo: " + info.GetType().Name);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryContainerAutomationPeer.cs (1)
451return Item == null ? string.Empty : Item.GetType().Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryListAutomationPeer.cs (1)
92selection.GetType().Name);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
1024if (string.Equals(editorTypeName, editor.GetType().Name))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CiderCategoryLayoutContainer.cs (1)
28string editorTypeName = item.GetType().Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\PropertyValueToDisplayNameConverter.cs (1)
71valueTypeName = rawPropertyValue.GetType().Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\quickitemtemplateselector.cs (1)
54if (element != null && typeof(ChoiceEditor).IsAssignableFrom(element.GetType()))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\RTLValueConverter.cs (1)
40if (propertyValue == null || propertyValue.GetType() == typeof(string))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (3)
236EditorBrowsableAttribute browsable = GetAttribute<EditorBrowsableAttribute>(editor.GetType()); 884if (typeof(T).IsAssignableFrom(attribute.GetType())) 902if (typeof(T).IsAssignableFrom(attribute.GetType()))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\ValueConverters.cs (2)
77Fx.Assert(o.GetType() == typeof(Visibility), "Object to inverse-transform isn't a CheckState."); 93Fx.Assert(o.GetType() == typeof(bool), "Object to transform isn't a bool or mixed state.");
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryBase.cs (3)
198if (this.CategoryEditors[i].GetType() == categoryEditor) 312return string.Compare(x.GetType().ToString(), y.GetType().ToString(), StringComparison.CurrentCulture);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\NewItemFactoryTypeModel.cs (1)
58this.ReportException(string.Format(CultureInfo.CurrentCulture, ExceptionStringTable.NewItemFactoryIconLoadFailed, this.factory.GetType().Name, exception.Message));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (1)
1054if (converter != null && converter.CanConvertFrom(this.InternalValue.GetType()))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntry.cs (1)
1215Type valueType = value.GetType();
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValue.cs (2)
283|| ModelUtilities.ImplementsICollection(valueToConvert.GetType()) 284|| ModelUtilities.ImplementsIList(valueToConvert.GetType()))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (1)
86if (value == null || value.GetType().Equals(typeof(NullExtension)))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
214if (selectedVisual != null && !typeof(Window).IsAssignableFrom(_displayedSelection.PrimarySelection.View.GetType()))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelection.cs (1)
687return (GetSelectionStop(element) != null) && typeof(T).IsAssignableFrom(element.GetType()) && VisualTreeUtils.IsVisible(element as UIElement);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyViewManagerStateContainer.cs (1)
104_persistenceIdToManagerTypeNameMap[persistenceId] = manager.GetType().Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\VisualTreeUtils.cs (1)
146while (child != null && !typeof(T).IsAssignableFrom(child.GetType()));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (2)
1490if (filterType != null && !filterType.IsAssignableFrom(attr.GetType())) 1493AttributeData attrData = AttributeDataCache.GetAttributeData(attr.GetType());
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\CategoryEditor.cs (1)
59return CreateEditorAttribute(editor.GetType());
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyValueEditor.cs (1)
60return CreateEditorAttribute(editor.GetType());
System.Activities.Presentation\System\Activities\Presentation\Base\Core\ServiceManager.cs (1)
358service.GetType().FullName)));
System.Activities.Presentation\System\Activities\Presentation\Converters\ModelPropertyEntryToModelItemConverter.cs (2)
50values.FirstOrDefault<object>(p => p != null && typeof(CategoryEntry).IsAssignableFrom(p.GetType())); 53values.FirstOrDefault<object>(p => p != null && typeof(FrameworkElement).IsAssignableFrom(p.GetType()));
System.Activities.Presentation\System\Activities\Presentation\Converters\VisualBasicValueSearchableStringConverter.cs (1)
21Type t = value.GetType();
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (2)
282if (typeof(Activity).IsAssignableFrom(currentElement.GetType())) 467!typeof(ICompositeView).IsAssignableFrom(visualHit.GetType()))
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (12)
134this.content = new FakeModelItemImpl(manager, this.GetType(), this, null); 182return new AttributeCollection(this.GetType().GetCustomAttributes(false).OfType<Attribute>().ToArray()); 187return this.GetType().FullName; 192return this.GetType().FullName; 197object[] attributes = this.GetType().GetCustomAttributes(typeof(TypeConverterAttribute), false); 276object[] attributes = this.GetType().GetCustomAttributes(typeof(EditorAttribute), false); 302Type type = this.GetType(); 492OwnerType = this.GetType(), 506OwnerType = this.GetType(), 520OwnerType = this.GetType(), 534OwnerType = this.GetType(), 571Type type = this.GetType();
System.Activities.Presentation\System\Activities\Presentation\DesignTimeValidationFeature.cs (1)
20string.Format(CultureInfo.CurrentCulture, SR.DesignTimeValidationFeatureOnlyAppliesToType, this.GetType(), this.ApplyTo, modelType)));
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (4)
40Type expressionType = expression.GetType(); 78PropertyInfo variableProperty = expression.GetType().GetProperty("Variable"); 175Type expressionType = originalExpression.GetType(); 212Type expressionType = expression.GetType();
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (1)
456if (typeof(ConnectionPointsAdorner).IsAssignableFrom(Mouse.DirectlyOver.GetType()))
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (3)
77if (typeof(ConnectionPointsAdorner).IsAssignableFrom(Mouse.DirectlyOver.GetType())) 151if (element != null && typeof(INestedFreeFormPanelContainer).IsAssignableFrom(element.GetType())) 174if (child.GetType() == typeof(Connector))
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (3)
282while (obj != null && !typeof(INestedFreeFormPanelContainer).IsAssignableFrom(obj.GetType())); 332if (Children[i].GetType() == typeof(Connector)) 587if (typeof(Connector).IsAssignableFrom(e.Source.GetType()))
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
288if (ActivityArgumentHelper.TryGetArgumentAccessorsGenerator(activity.GetType(), out argumentAccessorsGenerator))
System.Activities.Presentation\System\Activities\Presentation\Model\EditingScope.cs (2)
49Fx.Assert(this.GetType() == typeof(ImmediateEditingScope), "we should only set this property on an ImmediateEditingScope"); 59Fx.Assert(this.GetType() == typeof(ImmediateEditingScope), "we should only set this property on an ImmediateEditingScope");
System.Activities.Presentation\System\Activities\Presentation\Model\FakeModelPropertyImpl.cs (1)
161get { return this.GetType().Name; }
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (1)
1044Type instanceType = instance.GetType();
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (4)
112if (typeof(ModelItem).IsAssignableFrom(oldKey.GetType()) && typeof(ModelItem).IsAssignableFrom(newKey.GetType())) 119if (typeof(ModelItem).IsAssignableFrom(oldKey.GetType())) 127if (typeof(ModelItem).IsAssignableFrom(newKey.GetType()))
System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyCollectionImpl.cs (1)
80Type instanceType = instance.GetType();
System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyImpl.cs (1)
36return this.parent.GetType();
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
424Type type = computedValue.GetType(); 448converterType = converterType.MakeGenericType(computedValue.GetType().GetGenericArguments());
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (5)
119Type instanceType = instance.GetType(); 139ModelItemDictionary modelItem = new ModelItemDictionaryImpl(this, instance.GetType(), instance, parent); 144ModelItemCollectionImpl modelItem = new ModelItemCollectionImpl(this, instance.GetType(), instance, parent); 149retval = new ModelItemImpl(this, instance.GetType(), instance, parent); 168this.FeatureManager.InitializeFeature(instance.GetType());
System.Activities.Presentation\System\Activities\Presentation\Model\XamlUtilities.cs (1)
25if (converter == null || converter.GetType() == typeof(TypeConverter))
System.Activities.Presentation\System\Activities\Presentation\NamespaceListProperty.cs (1)
33get { return this.instance.GetType(); }
System.Activities.Presentation\System\Activities\Presentation\NamespaceSettingsHandler.cs (2)
38if (root.GetType() == WorkflowServiceType) 118Fx.Assert(rootModel.GetCurrentValue().GetType() == WorkflowServiceType, "This handler should only be attached when the root is WorkflowService");
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (2)
580IValidationErrorSourceLocator validationErrorSourceLocator = this.GetValidationErrorSourceLocator(activity.GetType()); 939IValidationErrorSourceLocator validationErrorSourceLocator = GetValidationErrorSourceLocator(violatingActivity.GetType());
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (3)
1065else if (null != value && !this.GetArgumentType().IsAssignableFrom(value.GetType())) 1068if (converter.CanConvertFrom(value.GetType())) 1327if (null != value && !this.GetArgumentType().IsAssignableFrom(value.GetType()))
System.Activities.Presentation\System\Activities\Presentation\View\CanExpandCollapseAllConverter.cs (1)
20ActivityDesignerOptionsAttribute attr = WorkflowViewService.GetAttribute<ActivityDesignerOptionsAttribute>(value.GetType());
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (2)
542Type controlType = control.GetType(); 922if (null != e && null != e.OriginalSource && e.OriginalSource.GetType() == typeof(DataGridCell))
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (6)
152if (gesture.GetType() == typeof(DefaultCommandExtensionCallback.ChordKeyGesture)) 170if (gesture.GetType() == typeof(DefaultCommandExtensionCallback.ChordKeyGesture)) 208if (gesture.GetType() == typeof(DefaultCommandExtensionCallback.ChordKeyGesture)) 330if (item.CommandExtensionCallback.GetType() == typeof(DefaultCommandExtensionCallback)) 476Fx.Assert(this.contextMenuTarget.IsVisible, string.Format(CultureInfo.InvariantCulture, "ContextMenuTarget {0} is not visible", this.contextMenuTarget.GetType())); 1393System.Diagnostics.Debug.WriteLine(target.GetType().Name + " " + target.GetHashCode());
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
640if (typeof(WorkflowViewElement).IsAssignableFrom(source.GetType())) 653DateTime.Now.ToLocalTime(), (null == this.FocusedViewElement ? "<null>" : this.FocusedViewElement.GetType().Name), e.OriginalSource));
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (3)
825expression.GetType().FullName, typeof(ActivityWithResult).FullName); 830expression.GetType().FullName, typeof(Activity<Location>).FullName); 836expression.GetType().FullName, typeof(Activity<>).MakeGenericType(owner.ExpressionType).FullName);
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (3)
239if (typeof(ModelItem).IsAssignableFrom(value.GetType())) 243else if (typeof(ModelProperty).IsAssignableFrom(value.GetType())) 247else if (typeof(KeyValuePair<ModelItem, ModelItem>).IsAssignableFrom(value.GetType()))
System.Activities.Presentation\System\Activities\Presentation\View\TypeToStringValueConverter.cs (1)
20Fx.Assert(value is Type, string.Format(CultureInfo.InvariantCulture, "TypeToStringValueConverter cannot convert from type {0} to string", value.GetType().FullName));
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
1285Type expressionType = expression.GetType();
System.Activities.Presentation\System\Activities\Presentation\VisualBasicExpressionMorphHelper.cs (2)
19Fx.Assert(expression.GetType().GetGenericTypeDefinition() == typeof(VisualBasicValue<>) || 20expression.GetType().GetGenericTypeDefinition() == typeof(VisualBasicReference<>), "VisualBasicExpressionMorphHelper should only apply to VB expression.");
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (2)
149if (s != null && s.GetType().FullName.Equals(addinTypeName)) 162if (service != null && service.GetType().FullName.Equals(serviceTypeName))
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (4)
284while (null != parent && !typeof(ICompositeViewEvents).IsAssignableFrom(parent.GetType())) 739this.AllowedItemType.IsAssignableFrom(itemsToPaste[0].GetType())); 765return this.owner.GetType().Name; 787return this.owner.GetType().Name;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (4)
326while (null != parent && !typeof(ICompositeViewEvents).IsAssignableFrom(parent.GetType())) 713if (this.AllowedItemType.IsAssignableFrom(droppedObject.GetType())) 933automationId = this.owner.GetType().Name; 956return this.owner.GetType().Name;
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (13)
349this.GetType().Name, activeContainer == null ? "<null>" : activeContainer.GetHashCode().ToString(CultureInfo.InvariantCulture))); 452this.defaultCompositeView.GetType().Name, this.GetType().Name, this.defaultCompositeView.GetHashCode())); 484container.GetType().Name, this.GetType().Name, container.GetHashCode())); 502container.GetType().Name, this.GetType().Name)); 547DateTime.Now.ToLocalTime(), this.GetType().Name, selection.SelectionCount, becomesSelection, e.OriginalSource)); 642DateTime.Now.ToLocalTime(), this.GetType().Name, shouldSetFocus, this.IsMouseCaptured, e.OriginalSource)); 650DateTime.Now.ToLocalTime(), this.GetType().Name)); 814DateTime.Now.ToLocalTime(), this.GetType().Name, this.IsMouseCaptured)); 1110itemType = this.owner.GetType(); 1147return this.owner.GetType().Name;
System.Activities.Presentation\System\Activities\Presentation\Xaml\ActivityBuilderHelper.cs (1)
39throw FxTrace.Exception.AsError(new InvalidCastException(input.GetType().FullName));
System.AddIn (3)
System\Addin\Hosting\ActivationWorker.cs (1)
185AddInActivator.InvokerDelegate myInvokerDelegate = AddInActivator.CreateConsInvoker(adapterType, addIn.GetType());
System\Addin\Hosting\AddInActivator.cs (1)
144Assembly a = permission.GetType().Assembly;
System\Addin\Pipeline\ContractBase.cs (1)
73Type t = this.GetType();
System.AddIn.Contract (7)
System\Addin\Contract\RemoteArgument.cs (7)
85typeCode = Type.GetTypeCode(arrayValue.GetType().GetElementType()); 89typeCode = Type.GetTypeCode(value.GetType()); 134TypeCode arrayTypeCode = Type.GetTypeCode(arrayValue.GetType().GetElementType()); 694if (Type.GetTypeCode(array.GetType().GetElementType()) == TypeCode.Object) 702this.intrinsicTypeCode = Type.GetTypeCode(array.GetType().GetElementType()); 716if (Type.GetTypeCode(array.GetType().GetElementType()) == TypeCode.Object) 724this.intrinsicTypeCode = Type.GetTypeCode(array.GetType().GetElementType());
System.ComponentModel.DataAnnotations (8)
DataAnnotations\CustomValidationAttribute.cs (2)
139(value != null ? value.GetType().ToString() : "null"), this._valuesType, this._validatorType, this._method)); 288if (t.IsAssignableFrom(value.GetType())) {
DataAnnotations\EnumDataTypeAttribute.cs (2)
38Type valueType = value.GetType(); 61Debug.Assert(valueType == value.GetType(), "The valueType should equal the Type of the value");
DataAnnotations\RangeAttribute.cs (2)
152Type operandType = minimum.GetType(); 182Func<object, object> conversion = value => (value != null && value.GetType() == type) ? value : converter.ConvertFrom(value);
DataAnnotations\ValidationContext.cs (1)
155return this.ObjectInstance.GetType();
DataAnnotations\Validator.cs (1)
307return destinationType.IsAssignableFrom(value.GetType());
System.Configuration (35)
System\Configuration\BaseConfigurationRecord.cs (1)
2243bool isFactoryTrustedWithoutAptca = TypeUtil.IsTypeFromTrustedAssemblyWithoutAptca(factory.GetType());
System\Configuration\ConfigurationConverterBase.cs (1)
32if ((value != null) && (value.GetType() != expected)) {
System\Configuration\ConfigurationElement.cs (13)
88ConfigurationElement element = (ConfigurationElement)TypeUtil.CreateInstanceRestricted(callingType: GetType(), targetType: type); 411if (elem.GetType() != this.GetType()) { 632(compareTo.GetType() != this.GetType()) || 737Type type = instance.GetType(); 905if ((s_perTypeValidators != null) && (s_perTypeValidators.ContainsKey(elem.GetType()))) { 906elem._elementProperty = new ConfigurationElementProperty(s_perTypeValidators[ elem.GetType() ]); 937if (PropertiesFromType(this.GetType(), out result)) { 974tw.WriteLine("Type: " + GetType().FullName); 976foreach (PropertyInfo pi in GetType().GetProperties()) { 1739if ((validator != null) && !validator.CanValidate(elem.GetType())) { 1740throw new ConfigurationErrorsException(SR.GetString(SR.Validator_does_not_support_elem_type, elem.GetType().Name));
System\Configuration\ConfigurationElementCollection.cs (2)
169if (compareTo.GetType() == this.GetType()) {
System\Configuration\ConfigurationManager.cs (2)
159if (section == null || section.GetType() != typeof(ConnectionStringsSection)) { 243( s_configSystem.GetType() != typeof( ClientConfigurationSystem ) ) ) {
System\Configuration\ConfigurationPermission.cs (6)
87if (target.GetType() != typeof(ConfigurationPermission)) { 110if (target.GetType() != typeof(ConfigurationPermission)) { 132if (target.GetType() != typeof(ConfigurationPermission)) { 154if (className.IndexOf(this.GetType().FullName, StringComparison.Ordinal ) < 0) { 185securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace( '\"', '\'' ));
System\Configuration\ConfigurationProperty.cs (2)
218bool canAssign = _type.IsAssignableFrom(value.GetType()); 219if (!canAssign && this.Converter.CanConvertFrom(value.GetType())) {
System\Configuration\ConfigurationSection.cs (1)
75ConfigurationElement TempElement = CreateElement(this.GetType());
System\Configuration\elementinformation.cs (1)
136return _thisElement.GetType();
System\Configuration\GenericEnumConverter.cs (1)
33Debug.Assert(typeof(System.Enum).IsAssignableFrom(value.GetType()), "typeof(System.Enum).IsAssignableFrom(value.GetType())");
System\Configuration\MgmtConfigurationRecord.cs (4)
793typeName = Host.GetConfigTypeName(configSection.GetType()); 814configSection.GetType(), typeof(ConfigurationSection), true); 816factoryRecord.IsFactoryTrustedWithoutAptca = TypeUtil.IsTypeFromTrustedAssemblyWithoutAptca(configSection.GetType()); 974typeName = Host.GetConfigTypeName(configSectionGroup.GetType());
System\Configuration\ValidatorUtils.cs (1)
29if (value.GetType() != allowedType) {
System.Core (34)
Microsoft\Scripting\Actions\CallSiteHelpers.cs (2)
22private static Type _knownNonDynamicMethodType = typeof(object).GetMethod("ToString").GetType(); 40if (mb.Name == "CallSite.Target" && mb.GetType() != _knownNonDynamicMethodType) {
Microsoft\Scripting\Actions\DynamicMetaObject.cs (2)
122return _value.GetType(); 325throw Error.InvalidMetaObjectCreated(ido.GetType());
Microsoft\Scripting\Actions\DynamicMetaObjectBinder.cs (3)
125throw Error.DynamicObjectResultNotAssignable(body.Type, target.Value.GetType(), this, expectedResult); 136throw Error.DynamicBindingNeedsRestrictions(target.Value.GetType(), this); 286return obj != null && ComObjectType.IsAssignableFrom(obj.GetType());
Microsoft\Scripting\Actions\DynamicObject.cs (4)
425Type t = binder.GetType(); 502this.Value.GetType(), 503binder.GetType(), 714var methods = Value.GetType().GetMember(method, MemberTypes.Method, BindingFlags.Public | BindingFlags.Instance);
Microsoft\Scripting\Ast\ConstantExpression.cs (4)
46if ((value == null && type == typeof(object)) || (value != null && value.GetType() == type)) { 62return _value.GetType(); 112return ConstantExpression.Make(value, value == null ? typeof(object) : value.GetType()); 132if (value != null && !type.IsAssignableFrom(value.GetType())) {
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
1085Out(String.Format(CultureInfo.CurrentCulture, ".Extension<{0}>", node.GetType().ToString()));
Microsoft\Scripting\Ast\DynamicExpression.cs (1)
47Debug.Assert(delegateType.GetMethod("Invoke").GetReturnType() == typeof(object) || GetType() != typeof(DynamicExpression));
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (3)
391} else if (sValue == node.Value.GetType().ToString()) { 780var toString = node.GetType().GetMethod("ToString", flags, null, Type.EmptyTypes, null); 790Out(node.GetType().FullName);
Microsoft\Scripting\Ast\MethodCallExpression.cs (2)
924parameterType.IsAssignableFrom(argument.GetType())) { 986!(TypeUtils.IsSameOrSubclass(typeof(LambdaExpression), pType) && pType.IsAssignableFrom(arg.GetType()))) {
Microsoft\Scripting\Ast\TypeBinaryExpression.cs (1)
157return Expression.Constant(_typeOperand.GetNonNullableType() == ce.Value.GetType());
Microsoft\Scripting\Ast\UnaryExpression.cs (1)
795return new UnaryExpression(ExpressionType.Quote, expression, expression.GetType(), null);
Microsoft\Scripting\Compiler\ILGen.cs (1)
478EmitConstant(il, value, value.GetType());
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (1)
488Type siteType = site.GetType();
Microsoft\Scripting\Utils\ReadOnlyCollectionBuilder.cs (1)
452throw new ArgumentException(Strings.InvalidObjectType(value != null ? value.GetType() : (object)"null", typeof(T)), argument);
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (3)
231Contract.Assert(typeof(T) == this.GetType()); 259Contract.Assert(typeof(T) == this.GetType()); 295Contract.Assert(typeof(T) == this.GetType());
System\IO\Pipes\PipeSecurity.cs (2)
269rule.IdentityReference.GetType()); 305rule.IdentityReference.GetType());
System\Linq\IQueryable.cs (1)
84Type enumType = TypeHelper.FindGenericType(typeof(IEnumerable<>), source.GetType());
System\Linq\SequenceQuery.cs (1)
300Type t = GetPublicType(sq.Enumerable.GetType());
System.Data (379)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (2)
571service.GetType().FullName))); 693serviceInstance.GetType().FullName)));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (3)
227Fx.Assert(methodInfo != null, "It looks like MemberType did not match the type of MemberInfo: " + info.GetType().Name); 237Fx.Assert(propInfo != null, "It looks like MemberType did not match the type of MemberInfo: " + info.GetType().Name); 247Fx.Assert(eventInfo != null, "It looks like MemberType did not match the type of MemberInfo: " + info.GetType().Name);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
1024if (string.Equals(editorTypeName, editor.GetType().Name))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CiderCategoryLayoutContainer.cs (1)
28string editorTypeName = item.GetType().Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\PropertyValueToDisplayNameConverter.cs (1)
71valueTypeName = rawPropertyValue.GetType().Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\RTLValueConverter.cs (1)
40if (propertyValue == null || propertyValue.GetType() == typeof(string))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (3)
236EditorBrowsableAttribute browsable = GetAttribute<EditorBrowsableAttribute>(editor.GetType()); 884if (typeof(T).IsAssignableFrom(attribute.GetType())) 902if (typeof(T).IsAssignableFrom(attribute.GetType()))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\ValueConverters.cs (2)
77Fx.Assert(o.GetType() == typeof(Visibility), "Object to inverse-transform isn't a CheckState."); 93Fx.Assert(o.GetType() == typeof(bool), "Object to transform isn't a bool or mixed state.");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryBase.cs (3)
198if (this.CategoryEditors[i].GetType() == categoryEditor) 312return string.Compare(x.GetType().ToString(), y.GetType().ToString(), StringComparison.CurrentCulture);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\NewItemFactoryTypeModel.cs (1)
58this.ReportException(string.Format(CultureInfo.CurrentCulture, ExceptionStringTable.NewItemFactoryIconLoadFailed, this.factory.GetType().Name, exception.Message));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (1)
1054if (converter != null && converter.CanConvertFrom(this.InternalValue.GetType()))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntry.cs (1)
1215Type valueType = value.GetType();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValue.cs (2)
283|| ModelUtilities.ImplementsICollection(valueToConvert.GetType()) 284|| ModelUtilities.ImplementsIList(valueToConvert.GetType()))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (1)
86if (value == null || value.GetType().Equals(typeof(NullExtension)))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyViewManagerStateContainer.cs (1)
104_persistenceIdToManagerTypeNameMap[persistenceId] = manager.GetType().Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (2)
1490if (filterType != null && !filterType.IsAssignableFrom(attr.GetType())) 1493AttributeData attrData = AttributeDataCache.GetAttributeData(attr.GetType());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\CategoryEditor.cs (1)
59return CreateEditorAttribute(editor.GetType());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyValueEditor.cs (1)
60return CreateEditorAttribute(editor.GetType());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\ServiceManager.cs (1)
358service.GetType().FullName)));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\ModelPropertyEntryToModelItemConverter.cs (2)
50values.FirstOrDefault<object>(p => p != null && typeof(CategoryEntry).IsAssignableFrom(p.GetType())); 53values.FirstOrDefault<object>(p => p != null && typeof(FrameworkElement).IsAssignableFrom(p.GetType()));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\VisualBasicValueSearchableStringConverter.cs (1)
21Type t = value.GetType();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (1)
282if (typeof(Activity).IsAssignableFrom(currentElement.GetType()))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (12)
134this.content = new FakeModelItemImpl(manager, this.GetType(), this, null); 182return new AttributeCollection(this.GetType().GetCustomAttributes(false).OfType<Attribute>().ToArray()); 187return this.GetType().FullName; 192return this.GetType().FullName; 197object[] attributes = this.GetType().GetCustomAttributes(typeof(TypeConverterAttribute), false); 276object[] attributes = this.GetType().GetCustomAttributes(typeof(EditorAttribute), false); 302Type type = this.GetType(); 492OwnerType = this.GetType(), 506OwnerType = this.GetType(), 520OwnerType = this.GetType(), 534OwnerType = this.GetType(), 571Type type = this.GetType();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignTimeValidationFeature.cs (1)
20string.Format(CultureInfo.CurrentCulture, SR.DesignTimeValidationFeatureOnlyAppliesToType, this.GetType(), this.ApplyTo, modelType)));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\EditingScope.cs (2)
49Fx.Assert(this.GetType() == typeof(ImmediateEditingScope), "we should only set this property on an ImmediateEditingScope"); 59Fx.Assert(this.GetType() == typeof(ImmediateEditingScope), "we should only set this property on an ImmediateEditingScope");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\FakeModelPropertyImpl.cs (1)
161get { return this.GetType().Name; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (1)
1044Type instanceType = instance.GetType();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (4)
112if (typeof(ModelItem).IsAssignableFrom(oldKey.GetType()) && typeof(ModelItem).IsAssignableFrom(newKey.GetType())) 119if (typeof(ModelItem).IsAssignableFrom(oldKey.GetType())) 127if (typeof(ModelItem).IsAssignableFrom(newKey.GetType()))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyCollectionImpl.cs (1)
80Type instanceType = instance.GetType();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyImpl.cs (1)
36return this.parent.GetType();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
424Type type = computedValue.GetType(); 448converterType = converterType.MakeGenericType(computedValue.GetType().GetGenericArguments());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (5)
119Type instanceType = instance.GetType(); 139ModelItemDictionary modelItem = new ModelItemDictionaryImpl(this, instance.GetType(), instance, parent); 144ModelItemCollectionImpl modelItem = new ModelItemCollectionImpl(this, instance.GetType(), instance, parent); 149retval = new ModelItemImpl(this, instance.GetType(), instance, parent); 168this.FeatureManager.InitializeFeature(instance.GetType());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\XamlUtilities.cs (1)
25if (converter == null || converter.GetType() == typeof(TypeConverter))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceListProperty.cs (1)
33get { return this.instance.GetType(); }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceSettingsHandler.cs (2)
38if (root.GetType() == WorkflowServiceType) 118Fx.Assert(rootModel.GetCurrentValue().GetType() == WorkflowServiceType, "This handler should only be attached when the root is WorkflowService");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (3)
1065else if (null != value && !this.GetArgumentType().IsAssignableFrom(value.GetType())) 1068if (converter.CanConvertFrom(value.GetType())) 1327if (null != value && !this.GetArgumentType().IsAssignableFrom(value.GetType()))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\CanExpandCollapseAllConverter.cs (1)
20ActivityDesignerOptionsAttribute attr = WorkflowViewService.GetAttribute<ActivityDesignerOptionsAttribute>(value.GetType());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
330if (item.CommandExtensionCallback.GetType() == typeof(DefaultCommandExtensionCallback)) 476Fx.Assert(this.contextMenuTarget.IsVisible, string.Format(CultureInfo.InvariantCulture, "ContextMenuTarget {0} is not visible", this.contextMenuTarget.GetType()));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
653DateTime.Now.ToLocalTime(), (null == this.FocusedViewElement ? "<null>" : this.FocusedViewElement.GetType().Name), e.OriginalSource));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (3)
239if (typeof(ModelItem).IsAssignableFrom(value.GetType())) 243else if (typeof(ModelProperty).IsAssignableFrom(value.GetType())) 247else if (typeof(KeyValuePair<ModelItem, ModelItem>).IsAssignableFrom(value.GetType()))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeToStringValueConverter.cs (1)
20Fx.Assert(value is Type, string.Format(CultureInfo.InvariantCulture, "TypeToStringValueConverter cannot convert from type {0} to string", value.GetType().FullName));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (2)
149if (s != null && s.GetType().FullName.Equals(addinTypeName)) 162if (service != null && service.GetType().FullName.Equals(serviceTypeName))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (3)
739this.AllowedItemType.IsAssignableFrom(itemsToPaste[0].GetType())); 765return this.owner.GetType().Name; 787return this.owner.GetType().Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (3)
713if (this.AllowedItemType.IsAssignableFrom(droppedObject.GetType())) 933automationId = this.owner.GetType().Name; 956return this.owner.GetType().Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (13)
349this.GetType().Name, activeContainer == null ? "<null>" : activeContainer.GetHashCode().ToString(CultureInfo.InvariantCulture))); 452this.defaultCompositeView.GetType().Name, this.GetType().Name, this.defaultCompositeView.GetHashCode())); 484container.GetType().Name, this.GetType().Name, container.GetHashCode())); 502container.GetType().Name, this.GetType().Name)); 547DateTime.Now.ToLocalTime(), this.GetType().Name, selection.SelectionCount, becomesSelection, e.OriginalSource)); 642DateTime.Now.ToLocalTime(), this.GetType().Name, shouldSetFocus, this.IsMouseCaptured, e.OriginalSource)); 650DateTime.Now.ToLocalTime(), this.GetType().Name)); 814DateTime.Now.ToLocalTime(), this.GetType().Name, this.IsMouseCaptured)); 1110itemType = this.owner.GetType(); 1147return this.owner.GetType().Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ActivityBuilderHelper.cs (1)
39throw FxTrace.Exception.AsError(new InvalidCastException(input.GetType().FullName));
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (51)
204if (value.GetType() == typeof(Int64)) 206else if (value.GetType() == typeof(SqlInt64)) 208else if (Type.GetTypeCode(value.GetType()) == TypeCode.Int64) 215if (value.GetType() == typeof( byte[] )) 217else if (value.GetType() == typeof( SqlBinary )) 219else if (value.GetType() == typeof( SqlBytes )) 221else if (value.GetType() == typeof(StreamDataFeed)) 225if (value.GetType() == typeof( bool )) 227else if (value.GetType() == typeof( SqlBoolean )) 229else if (Type.GetTypeCode(value.GetType()) == TypeCode.Boolean) 238if (value.GetType() == typeof( string )) 240if (value.GetType() == typeof(TextDataFeed)) 242else if (value.GetType() == typeof(SqlString)) 244else if (value.GetType() == typeof(char[])) 246else if (value.GetType() == typeof(SqlChars)) 248else if (value.GetType() == typeof(char)) 250else if (Type.GetTypeCode(value.GetType()) == TypeCode.Char) 252else if (Type.GetTypeCode(value.GetType()) == TypeCode.String) 263if (value.GetType() == typeof( DateTime )) 265else if (value.GetType() == typeof( SqlDateTime )) 267else if (Type.GetTypeCode(value.GetType()) == TypeCode.DateTime) 271if (value.GetType() == typeof( Decimal )) 273else if (value.GetType() == typeof( SqlDecimal )) 275else if (Type.GetTypeCode(value.GetType()) == TypeCode.Decimal) 279if (value.GetType() == typeof( Single )) 281else if (value.GetType() == typeof( SqlSingle )) 283else if (Type.GetTypeCode(value.GetType()) == TypeCode.Single) 287if (value.GetType() == typeof( Int32 )) 289else if (value.GetType() == typeof( SqlInt32 )) 291else if (Type.GetTypeCode(value.GetType()) == TypeCode.Int32) 296if (value.GetType() == typeof( SqlMoney )) 298else if (value.GetType() == typeof( Decimal )) 300else if (Type.GetTypeCode(value.GetType()) == TypeCode.Decimal) 304if (value.GetType() == typeof( SqlDouble )) 306else if (value.GetType() == typeof( Double )) 308else if (Type.GetTypeCode(value.GetType()) == TypeCode.Double) 312if (value.GetType() == typeof( SqlGuid )) 314else if (value.GetType() == typeof( Guid )) 318if (value.GetType() == typeof( Int16 )) 320else if (value.GetType() == typeof( SqlInt16 )) 322else if (Type.GetTypeCode(value.GetType()) == TypeCode.Int16) 326if (value.GetType() == typeof( Byte )) 328else if (value.GetType() == typeof( SqlByte )) 330else if (Type.GetTypeCode(value.GetType()) == TypeCode.Byte) 346value.GetType() == udtType 355if (value.GetType() == typeof(TimeSpan) && smiVersion >= SmiContextFactory.KatmaiVersion) 359if (value.GetType() == typeof(DateTimeOffset) && smiVersion >= SmiContextFactory.KatmaiVersion) 363if (value.GetType() == typeof( SqlXml )) 365if (value.GetType() == typeof(XmlDataFeed)) 367else if (value.GetType() == typeof( System.String )) 429resultCode = DetermineExtendedTypeCodeFromType(value.GetType());
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (1)
1589case ExtendedClrTypeCode.Invalid: throw ADP.UnknownDataType( value.GetType() );
fx\src\data\System\Data\CodeGen\datacache.cs (3)
1309initClassMethod.Statements.Add(Assign(Property(varFkc,"AcceptRejectRule"),Field(TypeExpr(fkc.AcceptRejectRule.GetType()), acceptRejectRule))); 1310initClassMethod.Statements.Add(Assign(Property(varFkc,"DeleteRule"),Field(TypeExpr(fkc.DeleteRule.GetType()), deleteRule))); 1311initClassMethod.Statements.Add(Assign(Property(varFkc,"UpdateRule"),Field(TypeExpr(fkc.UpdateRule.GetType()), updateRule)));
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
122if (value != null && value.GetType() == typeof(string)) {
fx\src\data\System\Data\Common\AdapterUtil.cs (19)
280ObjectDisposedException e = new ObjectDisposedException(instance.GetType().Name); 935return Argument(Res.GetString(Res.ADP_CollectionRemoveInvalidObject, itemType.Name, collection.GetType().Name)); // MDAC 68201 947return InvalidCast(Res.GetString(Res.ADP_CollectionInvalidType, collection.Name, itemType.Name, invalidValue.GetType().Name)); 953return Argument(Res.GetString(Res.ADP_CollectionIsNotParent, parameterType.Name, collection.GetType().Name)); 956return Argument(Res.GetString(Res.ADP_CollectionIsNotParent, parameterType.Name, collection.GetType().Name)); 1036return CollectionIndexInt32(index, collection.GetType(), collection.Count); 1067return CollectionIndexInt32(index, collection.GetType(), collection.Count); 1373return DataAdapter(Res.GetString(Res.ADP_DeriveParametersNotSupported, value.GetType().Name, value.CommandType.ToString())); 1379return InvalidOperation(Res.GetString(Res.ADP_PrepareParameterType, cmd.GetType().Name)); 1382return InvalidOperation(Res.GetString(Res.ADP_PrepareParameterSize, cmd.GetType().Name)); 1385return InvalidOperation(Res.GetString(Res.ADP_PrepareParameterScale, cmd.GetType().Name, type)); 1600string message = Res.GetString(Res.ADP_ParameterConversionFailed, value.GetType().Name, destType.Name); 1624return CollectionIndexInt32(index, collection.GetType(), collection.Count); 1627return CollectionIndexString(parameterType, ADP.ParameterName, parameterName, collection.GetType()); 1630return CollectionNullValue(parameter, collection.GetType(), parameterType); 1633return CollectionInvalidType(collection.GetType(), parameterType, invalidValue); 1640return InvalidOperation(Res.GetString(Res.ADP_ParallelTransactionsNotSupported, obj.GetType().Name)); 1643return InvalidOperation(Res.GetString(Res.ADP_TransactionZombied, obj.GetType().Name)); 2519isSqlType = DataStorage.IsSqlType(value.GetType());
fx\src\data\System\Data\Common\BigIntegerStorage.cs (11)
61if (value.GetType() == typeof(BigInteger)) { return (BigInteger)value; } 62else if (value.GetType() == typeof(String)) { return BigInteger.Parse((string)value, formatProvider); } 63else if (value.GetType() == typeof(Int64)) { return (BigInteger)(Int64)value; } 64else if (value.GetType() == typeof(Int32)) { return (BigInteger)(Int32)value; } 65else if (value.GetType() == typeof(Int16)) { return (BigInteger)(Int16)value; } 66else if (value.GetType() == typeof(SByte)) { return (BigInteger)(SByte)value; } 67else if (value.GetType() == typeof(UInt64)) { return (BigInteger)(UInt64)value; } 68else if (value.GetType() == typeof(UInt32)) { return (BigInteger)(UInt32)value; } 69else if (value.GetType() == typeof(UInt16)) { return (BigInteger)(UInt16)value; } 70else if (value.GetType() == typeof(Byte)) { return (BigInteger)(Byte)value; } 71else { throw ExceptionBuilder.ConvertFailed(value.GetType(), typeof(System.Numerics.BigInteger)); }
fx\src\data\System\Data\Common\DataAdapter.cs (1)
286DataAdapter clone = (DataAdapter)Activator.CreateInstance(GetType(), System.Reflection.BindingFlags.Public|System.Reflection.BindingFlags.Instance, null, null, CultureInfo.InvariantCulture, null);
fx\src\data\System\Data\Common\DbConnectionPoolKey.cs (1)
52if (obj == null || obj.GetType() != typeof(DbConnectionPoolKey))
fx\src\data\System\Data\Common\DbConnectionStringBuilder.cs (5)
265if ((GetType() != connectionStringBuilder.GetType()) || (CurrentValues.Count != connectionStringBuilder.CurrentValues.Count)) { 395vtype = value.GetType(); 432this.GetType(), vtype, false, useAttributes); 461Attribute attr = property.Attributes[attribute.GetType()];
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (16)
268throw ADP.ConvertFailed(value.GetType(), typeof(Boolean), e); 298throw ADP.ConvertFailed(value.GetType(), typeof(Boolean), e); 310throw ADP.ConvertFailed(value.GetType(), typeof(Int32), e); 322throw ADP.ConvertFailed(value.GetType(), typeof(String), e); 428else if (value.GetType().IsEnum) 433throw ADP.ConvertFailed(value.GetType(), typeof(PoolBlockingPeriod), null); 446throw ADP.ConvertFailed(value.GetType(), typeof(PoolBlockingPeriod), e); 553else if (value.GetType().IsEnum) 558throw ADP.ConvertFailed(value.GetType(), typeof(ApplicationIntent), null); 571throw ADP.ConvertFailed(value.GetType(), typeof(ApplicationIntent), e); 747else if (value.GetType().IsEnum) 752throw ADP.ConvertFailed(value.GetType(), typeof(SqlAuthenticationMethod), null); 765throw ADP.ConvertFailed(value.GetType(), typeof(SqlAuthenticationMethod), e); 816else if (value.GetType().IsEnum) { 820throw ADP.ConvertFailed(value.GetType(), typeof(SqlConnectionColumnEncryptionSetting), null); 830throw ADP.ConvertFailed(value.GetType(), typeof(SqlConnectionColumnEncryptionSetting), e);
fx\src\data\System\Data\Common\DBDataPermission.cs (8)
138return (Activator.CreateInstance(GetType(), System.Reflection.BindingFlags.Public|System.Reflection.BindingFlags.Instance, null, null, CultureInfo.InvariantCulture, null) as DBDataPermission); 145if (target.GetType() != this.GetType()) { 188if (target.GetType() != this.GetType()) { 223if (target.GetType() != this.GetType()) { 323Type type = this.GetType();
fx\src\data\System\Data\Common\ObjectStorage.cs (9)
65if (value.GetType() == valueNo1.GetType()) 110Families Family1 = GetFamily(valueNo1.GetType()); 111Families Family2 = GetFamily(valueNo2.GetType()); 212Type valType = value.GetType(); 388if (!IsTypeCustomType(value.GetType())){ // Guid and Type had TypeCode.Object 392if (Type.GetTypeCode(value.GetType()) != TypeCode.Object) { 404XmlSerializer serializerWithOutRootAttribute = ObjectStorage.GetXmlSerializer(value.GetType()); 415XmlSerializer serializerWithRootAttribute = ObjectStorage.GetXmlSerializer(value.GetType(), xmlAttrib);
fx\src\data\System\Data\Common\SQLConvert.cs (17)
23Type valueType = value.GetType(); 41Type valueType = value.GetType(); 62Type valueType = value.GetType(); 90Type valueType = value.GetType(); 123Type valueType = value.GetType(); 171Type valueType = value.GetType(); 213Type valueType = value.GetType(); 257Type valueType = value.GetType(); 298Type valueType = value.GetType(); 316Type valueType = value.GetType(); 334Type valueType = value.GetType(); 352Type valueType = value.GetType(); 370Type valueType = value.GetType(); 388Type valueType = value.GetType(); 403Type valueType = value.GetType(); 472Type valueType = value.GetType(); 619Type valueType = value.GetType();
fx\src\data\System\Data\Common\SQLTypes\SQLBinaryStorage.cs (1)
106Debug.Assert((value.GetType() == typeof(SqlBinary)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SQlBooleanStorage.cs (1)
135Debug.Assert((value.GetType() == typeof(SqlBoolean)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SQLBytesStorage.cs (1)
105Debug.Assert((value.GetType() == typeof(SqlBytes)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SQLByteStorage.cs (1)
204Debug.Assert((value.GetType() == typeof(SqlByte)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SQLCharsStorage.cs (1)
107Debug.Assert((value.GetType() == typeof(SqlChars)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SQLDateTimeStorage.cs (1)
137Debug.Assert((value.GetType() == typeof(SqlDateTime)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SQLDecimalStorage.cs (1)
202Debug.Assert((value.GetType() == typeof(SqlDecimal)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SQLDoubleStorage.cs (1)
203Debug.Assert((value.GetType() == typeof(SqlDouble)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SQLGuidStorage.cs (1)
106Debug.Assert((value.GetType() == typeof(SqlGuid)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SQLInt16Storage.cs (1)
203Debug.Assert((value.GetType() == typeof(SqlInt16)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SQLInt32Storage.cs (1)
203Debug.Assert((value.GetType() == typeof(SqlInt32)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SQLInt64Storage.cs (1)
204Debug.Assert((value.GetType() == typeof(SqlInt64)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SQLMoneyStorage.cs (1)
203Debug.Assert((value.GetType() == typeof(SqlMoney)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SQLSingleStorage.cs (1)
204Debug.Assert((value.GetType() == typeof(SqlSingle)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SQLStringStorage.cs (1)
160Debug.Assert((value.GetType() == typeof(SqlString)), "wrong input type");
fx\src\data\System\Data\Common\SQLTypes\SqlUDTStorage.cs (1)
189XmlSerializer serializerWithOutRootAttribute = ObjectStorage.GetXmlSerializer(value.GetType());
fx\src\data\System\Data\Common\TimeSpanStorage.cs (1)
164Type typeofValue= value.GetType();
fx\src\data\System\Data\DataColumn.cs (8)
573throw ExceptionBuilder.DefaultValueDataType(ColumnName, DefaultValue.GetType(), value, ex); 576throw ExceptionBuilder.DefaultValueDataType(ColumnName, DefaultValue.GetType(), value, ex); 698throw ExceptionBuilder.DefaultValueColumnDataType(ColumnName, newDefaultValue.GetType(), DataType, ex); 1447Type leftType = value.GetType(); 1448Type rightType = _storage.Get(record1).GetType(); 1479DataColumn clone = (DataColumn)Activator.CreateInstance(this.GetType()); 1583return (DataStorage.IsTypeCustomType(value.GetType()) && !(value is Type)); 1881Debug.Assert(null != value && DataColumn.IsAutoIncrementType(value.GetType()) && !(value is System.Numerics.BigInteger), "unexpected value for autoincrement");
fx\src\data\System\Data\DataSet.cs (3)
1105DataSet ds = (DataSet)Activator.CreateInstance(this.GetType(), true); 2067((root.ChildNodes.Count == 1) && root.FirstChild.GetType() == typeof(System.Xml.XmlText))) { 3349if (GetType() == typeof(DataSet)) {
fx\src\data\System\Data\DataTable.cs (3)
941_isTypedDataTable = (byte)((this.GetType() != typeof(DataTable))? 1 : 2); 2141return (DataTable) Activator.CreateInstance(this.GetType(), true); 5942if (GetType() == typeof(DataTable)) {
fx\src\data\System\Data\DefaultValueTypeConverter.cs (1)
48if (value != null && value.GetType() == typeof(string)) {
fx\src\data\System\Data\Filter\BinaryNode.cs (16)
203if (((vLeft.GetType() == typeof(SqlBoolean)) && ((vRight.GetType() == typeof(SqlBoolean))|| (vRight.GetType() == typeof(Boolean))))|| 204((vRight.GetType() == typeof(SqlBoolean)) && ((vLeft.GetType() == typeof(SqlBoolean))|| (vLeft.GetType() == typeof(Boolean))))){ 233SetTypeMismatchError(op, vLeft.GetType(), vRight.GetType()); 253Type typeofLeft = vLeft.GetType(); 254Type typeofRight = vRight.GetType(); 843resultType = DataStorage.GetStorageType(vLeft.GetType()); 860SetTypeMismatchError(op, vLeft.GetType(), vRight.GetType()); 1232SetTypeMismatchError(op, vLeft.GetType(), vRight.GetType()); 1253SetTypeMismatchError(op, vLeft.GetType(), typeof(string));
fx\src\data\System\Data\Filter\ExpressionParser.cs (3)
335if (nodebefore == null || nodebefore.GetType() != typeof(NameNode)) { 395Debug.Assert(topNode > 0 && NodePeek().GetType() == typeof(FunctionNode), "The function node should be created on '('"); 502if (before != null && before.GetType() == typeof(NameNode)) {
fx\src\data\System\Data\Filter\FunctionNode.cs (13)
88if (arguments[1].GetType() == typeof(NameNode)) { 131if (argumentValues[i].GetType() != funcs[info].parameters[i]) { 134if (funcs[info].parameters[i] == typeof(int) && ExpressionNode.IsInteger(DataStorage.GetStorageType(argumentValues[i].GetType()))) { 138if ((typeof(string) != (argumentValues[i].GetType())) &&(typeof(SqlString) != (argumentValues[i].GetType()))){ 231Type nodeType = node.GetType(); 260storageType = DataStorage.GetStorageType(argumentValues[0].GetType()); 271storageType = DataStorage.GetStorageType(argumentValues[0].GetType()); 282throw ExprException.DatatypeConvertion(argumentValues[0].GetType(), typeof(bool)); 361Debug.Assert((argumentValues[0] is string)||(argumentValues[0] is SqlString), "Invalid first argument " + argumentValues[0].GetType().FullName + " in " + funcs[info].name); 362Debug.Assert(argumentValues[1] is int, "Invalid second argument " + argumentValues[1].GetType().FullName + " in " + funcs[info].name); 363Debug.Assert(argumentValues[2] is int, "Invalid third argument " + argumentValues[2].GetType().FullName + " in " + funcs[info].name); 423storageType = DataStorage.GetStorageType(argumentValues[0].GetType());
fx\src\data\System\Data\Filter\UnaryNode.cs (2)
56storageType = DataStorage.GetStorageType(vl.GetType()); 64storageType = DataStorage.GetStorageType(vl.GetType());
fx\src\data\System\Data\Merger.cs (2)
400Res.GetString(Res.DataMerge_MissingConstraint, src.GetType().FullName, src.ConstraintName), 420Res.GetString(Res.DataMerge_MissingConstraint, src.GetType().FullName, src.ConstraintName),
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (1)
82throw new ObjectDisposedException(GetType().Name);
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (2)
447if (values[positionOfColumnType].GetType() == typeof(short)) { 470if (values[positionOfProcedureType].GetType() == typeof(short)) {
fx\src\data\System\Data\Odbc\OdbcParameter.cs (3)
856if ((typemap != _typemap) && (null != Value) && !Convert.IsDBNull(Value) && (Value.GetType() != _typemap._type)) { 868Type valueType = value.GetType(); 894Type type = value.GetType ();
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (1)
314default: throw ADP.UnknownDataTypeCode(value.GetType(), ic.GetTypeCode());
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (1)
708if ((typeof(string) == destinationType) && (null != value) && (typeof(Int32) == value.GetType())) {
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (2)
228throw new ObjectDisposedException(GetType().Name); 237throw new ObjectDisposedException(GetType().Name);
fx\src\data\System\Data\OleDb\OleDbMetaDataFactory.cs (2)
279if (invalidCharsObject.GetType() == typeof(string)) { 283if (invalidStartingCharsObject.GetType() == typeof(string)) {
fx\src\data\System\Data\OleDb\OleDbParameter.cs (1)
411Type currentType = value.GetType();
fx\src\data\System\Data\PrimaryKeyTypeConverter.cs (1)
39 return (new DataColumn[] {}).GetType().Name;
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (1)
345ValidateCheck(offset, Marshal.SizeOf(structure.GetType()));
fx\src\data\System\Data\ProviderBase\DbConnectionInternal.cs (1)
467if (this.GetType() != typeof(System.Data.SqlClient.SqlInternalConnectionSmi))
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (2)
588Type fieldType = chapterValue.GetType(); 888Type fieldType = chapterValue.GetType();
fx\src\data\System\Data\Select.cs (4)
554StorageType leftType = DataStorage.GetStorageType(vLeft.GetType()); 562StorageType rightType = DataStorage.GetStorageType(vRight.GetType()); 571expr.SetTypeMismatchError(expr.op, vLeft.GetType(), vRight.GetType());
fx\src\data\System\Data\Sql\SqlMetaData.cs (2)
1046Type dataType = value.GetType(); 1129Type dataType = value.GetType();
fx\src\data\System\Data\Sql\sqlser.cs (3)
51Type t = instance.GetType(); 54Serializer ser = GetSerializer(instance.GetType()); 60GetSerializer(instance.GetType()).Serialize(s, instance);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (4)
1367throw SQL.BulkLoadCannotConvertValue(value.GetType(), mt, ADP.ParameterValueOutOfRange(sqlValue)); 1370throw SQL.BulkLoadCannotConvertValue(value.GetType(), mt, e); 1444throw SQL.BulkLoadCannotConvertValue(value.GetType(), type, null); 1458throw SQL.BulkLoadCannotConvertValue(value.GetType(), type, e);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
350_command.ObjectID, i, metaData[i].GetType().ToString(), metaData[i].TraceString()); 363_command.ObjectID, ordinal, metaData.GetType().ToString(), metaData.TraceString()); 5116if ( (null != v) && (v.GetType() == typeof(SqlInt32)) ) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
2276SqlUdtInfo attr = AssemblyCache.GetInfoFromType(o.GetType()); 2281throw new InvalidOperationException(o.GetType() + ": invalid Size");
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
1155reader.ObjectID, i, md[i].GetType().ToString(), md[i].TraceString());
fx\src\data\System\Data\SqlClient\SqlDependency.cs (2)
547Debug.Assert(result.GetType() == typeof(SqlDependencyProcessDispatcher), "Unexpected type stored in native!"); 1176Type type = value.GetType();
fx\src\data\System\Data\SqlClient\SqlEnums.cs (2)
281return GetMetaTypeFromValue(value.GetType(), value, true, streamAllowed); 483Type type = sqlValue.GetType();
fx\src\data\System\Data\SqlClient\SqlParameter.cs (2)
904Type currentType = value.GetType(); 984Debug.Assert(value.GetType() == currentType ^ typeChanged, "Incorrect value for typeChanged");
fx\src\data\System\Data\SqlClient\TdsParser.cs (3)
9901Type currentType = value.GetType(); 10094throw SQL.UDTUnexpectedResult(value.GetType().AssemblyQualifiedName); 11460return instance.GetType().ToString();
fx\src\data\System\Data\SQLTypes\SQLBinary.cs (1)
386throw ADP.WrongType(value.GetType(), typeof(SqlBinary));
fx\src\data\System\Data\SQLTypes\SQLBoolean.cs (1)
519throw ADP.WrongType(value.GetType(), typeof(SqlBoolean));
fx\src\data\System\Data\SQLTypes\SQLByte.cs (1)
519throw ADP.WrongType(value.GetType(), typeof(SqlByte));
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (1)
582throw ADP.WrongType(value.GetType(), typeof(SqlDateTime));
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (1)
3177throw ADP.WrongType(value.GetType(), typeof(SqlDecimal));
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (1)
439throw ADP.WrongType(value.GetType(), typeof(SqlDouble));
fx\src\data\System\Data\SQLTypes\SQLGuid.cs (1)
315throw ADP.WrongType(value.GetType(), typeof(SqlGuid));
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (1)
528throw ADP.WrongType(value.GetType(), typeof(SqlInt16));
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (1)
540throw ADP.WrongType(value.GetType(), typeof(SqlInt32));
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (1)
594throw ADP.WrongType(value.GetType(), typeof(SqlInt64));
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (1)
579throw ADP.WrongType(value.GetType(), typeof(SqlMoney));
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (1)
443throw ADP.WrongType(value.GetType(), typeof(SqlSingle));
fx\src\data\System\Data\SQLTypes\SQLString.cs (1)
921throw ADP.WrongType(value.GetType(), typeof(SqlString));
fx\src\data\System\Data\xmlsaver.cs (9)
1221if (col.GetType() != typeof(DataColumn)) 1596if (colTxt.GetType() != typeof(DataColumn)) 2236if (!col.IsCustomType || !col.IsValueCustomTypeInstance(columnValue) ||(typeof(IXmlSerializable).IsAssignableFrom(columnValue.GetType()))) { 2240Type valuesType = columnValue.GetType(); 2253if (!startElementSkipped && columnValue.GetType() != col.DataType) { 2261if (columnValue.GetType() != col.DataType) { // throw if polymorphism; not supported 2607if (!col.IsCustomType || !col.IsValueCustomTypeInstance(value) ||(typeof(IXmlSerializable).IsAssignableFrom(value.GetType()))) { 2613Type valuesType = value.GetType(); 2633if (value.GetType() != col.DataType) { // throw if polymorphism; not supported
System.Data.DataSetExtensions (5)
System\Data\DataRowComparer.cs (5)
39return (a.Equals(b) || (a.GetType().IsArray && CompareArray((Array)a, b as Array))); 68if (a.GetType() == b.GetType() && (0 == index1) && (0 == index2)) 70switch (Type.GetTypeCode(a.GetType().GetElementType())) 213Type valueType = value.GetType();
System.Data.Entity (145)
System\Data\Common\CommandTrees\AbstractExpressions.cs (1)
340Debug.Assert(type != null, string.Format(CultureInfo.InvariantCulture, "{0}.Type is null in DbExpression constructor", this.GetType().Name));
System\Data\Common\CommandTrees\BasicExpressionVisitor.cs (1)
191throw EntityUtil.NotSupported(System.Data.Entity.Strings.Cqt_General_UnsupportedExpression(expression.GetType().FullName));
System\Data\Common\CommandTrees\DbCommandTree.cs (2)
124dumper.Begin(this.GetType().Name, attrs); 148dumper.End(this.GetType().Name);
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (1)
381throw EntityUtil.NotSupported(System.Data.Entity.Strings.Cqt_General_UnsupportedExpression(expression.GetType().FullName));
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (7)
738if (!ArgumentValidation.TryGetPrimitiveTypeKind(value.GetType(), out primitiveTypeKind)) 765if((value.GetType().IsEnum || clrEnumUnderlyingType != value.GetType()) && !ClrEdmEnumTypesMatch(edmEnumType, value.GetType())) 769value.GetType().Name, 784if (!ArgumentValidation.TryGetPrimitiveTypeKind(value.GetType(), out valueKind) || 2107edmEnumTypeMember.Value.GetType() == clrEnumType.GetEnumUnderlyingType(),
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (2)
360Begin(expr.GetType().Name, attrs); 407End(expr.GetType().Name);
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
186throw EntityUtil.NotSupported(System.Data.Entity.Strings.Cqt_General_UnsupportedExpression(e.GetType().FullName));
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (1)
479throw EntityUtil.NotSupported(System.Data.Entity.Strings.Cqt_General_UnsupportedExpression(e.GetType().FullName));
System\Data\Common\CommandTrees\ValueExpressions.cs (4)
33Debug.Assert(!value.GetType().IsEnum || TypeSemantics.IsEnumerationType(resultType), "value is an enum while the result type is not of enum type."); 34Debug.Assert(Helper.AsPrimitive(resultType.EdmType).ClrEquivalentType == (value.GetType().IsEnum ? value.GetType().GetEnumUnderlyingType() : value.GetType()),
System\Data\Common\DataRecord.cs (1)
532object[] atts = o.GetType().GetCustomAttributes(/*inherit*/false); //atts will not be null (atts.Length==0)
System\Data\Common\DbProviderServices.cs (3)
308connection.GetType().ToString())); 327factory.GetType().ToString())); 335factory.GetType().ToString()));
System\Data\Common\EntitySql\AST\Literal.cs (1)
248_type = IsNullLiteral ? null : _computedValue.GetType();
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
498AstExprConverter converter = _astExprConverters[astExpr.GetType()];
System\Data\Common\EntityUtil.cs (9)
877return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateManager_GetEntityKeyRequiresObjectToHaveAKey(entity.GetType().FullName)); 898return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateManager_NoEntryExistsForObject(entity.GetType().FullName)); 950className, propertyName, value.GetType().Name)); 1056return InvalidOperation(System.Data.Entity.Strings.RelatedEnd_CannotAddToFixedSizeArray(collectionType.GetType())); 1059return InvalidOperation(System.Data.Entity.Strings.RelatedEnd_CannotRemoveFromFixedSizeArray(collectionType.GetType())); 1483return new InvalidOperationException(System.Data.Entity.Strings.EntityKey_DoesntMatchKeyOnEntity(entity.GetType().FullName)); 1721return new InvalidCastException(System.Data.Entity.Strings.InvalidEntityParameterType(invalidValue.GetType().Name)); 1838var connectionProviderFactoryType = providerFactory.GetType(); 1870if (foundFactory.GetType().Equals(connectionProviderFactoryType))
System\Data\Common\Internal\Materialization\Shaper.cs (1)
885Type resultType = null == untypedResult ? null : untypedResult.GetType();
System\Data\Common\Internal\Materialization\Translator.cs (2)
419Debug.Fail(string.Format(CultureInfo.CurrentCulture, "The type {0} was not the expected scalar, enumeration, collection, structural, nominal, or reference type.", edmType.GetType())); 827Type valueType = value.GetType();
System\Data\Common\QueryCache\CompiledQueryCacheKey.cs (1)
32if (typeof(CompiledQueryCacheKey) != compareTo.GetType())
System\Data\Common\QueryCache\EntityClientCacheKey.cs (1)
82if (typeof(EntityClientCacheKey) != otherObject.GetType())
System\Data\Common\QueryCache\EntitySqlQueryCacheKey.cs (1)
119if (typeof(EntitySqlQueryCacheKey) != otherObject.GetType())
System\Data\Common\QueryCache\LinqQueryCacheKey.cs (1)
114if (typeof(LinqQueryCacheKey) != otherObject.GetType())
System\Data\Common\Utils\Set.cs (2)
313Debug.Assert(other.Comparer.GetType().Equals(this.Comparer.GetType()));
System\Data\EntityClient\EntityConnection.cs (4)
396if (loaders.Any(loader => loader.GetType() == typeof(MetadataArtifactLoaderCompositeFile))) 728throw EntityUtil.ProviderIncompatible(System.Data.Entity.Strings.EntityClient_ReturnedNullOnProviderMethod("BeginTransaction", _storeConnection.GetType().Name)); 1007providerName = factory.GetType().FullName; 1276throw EntityUtil.ProviderIncompatible(System.Data.Entity.Strings.EntityClient_ReturnedNullOnProviderMethod("CreateConnection", factory.GetType().Name));
System\Data\EntityClient\EntityParameter.cs (4)
173return TypeHelpers.ConvertClrTypeToDbType(_value.GetType()); 270oldDbType = TypeHelpers.ConvertClrTypeToDbType(_value.GetType()); 277newDbType = TypeHelpers.ConvertClrTypeToDbType(value.GetType()); 447ClrProviderManifest.Instance.TryGetPrimitiveType(this.Value.GetType(), out primitiveParameterType) &&
System\Data\EntityClient\EntityProviderServices.cs (1)
81if (connection.GetType() != typeof(EntityConnection))
System\Data\EntityKey.cs (6)
1104if (entitySetKeyType != keyValue.GetType()) 1108throw EntityUtil.IncorrectValueType(argumentName, keyMember.Name, entitySetKeyType.FullName, keyValue.GetType().FullName); 1112throw EntityUtil.IncorrectValueTypeInvalidOperation(keyMember.Name, entitySetKeyType.FullName, keyValue.GetType().FullName); 1124if (expectedClrEnumType != keyValue.GetType()) 1128throw EntityUtil.IncorrectValueType(argumentName, keyMember.Name, expectedClrEnumType.FullName, keyValue.GetType().FullName); 1132throw EntityUtil.IncorrectValueTypeInvalidOperation(keyMember.Name, expectedClrEnumType.FullName, keyValue.GetType().FullName);
System\Data\EntityModel\SchemaObjectModel\FilteredSchemaElementLookUpTable.cs (1)
101throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.UnexpectedTypeInCollection(element.GetType(),key));
System\Data\Mapping\BaseMetadataMappingVisitor.cs (4)
371if (storagePropertyMapping.GetType() == typeof(StorageComplexPropertyMapping)) 375else if (storagePropertyMapping.GetType() == typeof(StorageConditionPropertyMapping)) 379else if (storagePropertyMapping.GetType() == typeof(StorageScalarPropertyMapping)) 385Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Found type '{0}', did we add a new type?", storagePropertyMapping.GetType()));
System\Data\Mapping\FunctionImportMapping.cs (1)
606Type columnValueType = columnValue.GetType();
System\Data\Mapping\MetadataMappingHasherVisitor.HashSourceBuilder.cs (1)
65base.Append(o.GetType().ToString());
System\Data\Mapping\StorageConditionPropertyMapping.cs (1)
141sb.Append("'" + Value.GetType() + "'");
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (1)
540if (null == value || value == DBNull.Value || value.GetType() == clrPrimitiveType)
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
131extent.Name, extent.GetType().Name));
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (2)
464Debug.Assert(Nullable.GetUnderlyingType(principalValue.GetType()) == null, "Unexpected nullable type."); 467Type principalType = principalValue.GetType();
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
574value.GetType().FullName,
System\Data\Metadata\Edm\EnumType.cs (1)
169Debug.Assert(enumMember.Value.GetType() == UnderlyingType.ClrEquivalentType);
System\Data\Metadata\Edm\Facet.cs (1)
92Type valueType = value.GetType();
System\Data\Metadata\Edm\MetadataPropertyCollection.cs (1)
41Type type = item.GetType();
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (2)
303if (typeAttribute.GetType() == typeof(EdmEntityTypeAttribute)) 307else if(typeAttribute.GetType() == typeof(EdmComplexTypeAttribute))
System\Data\Objects\DataClasses\EntityCollection.cs (2)
518throw EntityUtil.InvalidContainedTypeCollection(wrappedEntity.Entity.GetType().FullName, typeof(TEntity).FullName); 744this.TargetAccessor.PropertyName, this.WrappedOwner.Entity.GetType().FullName));
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (1)
526throw EntityUtil.InvalidContainedTypeReference(wrappedEntity.Entity.GetType().FullName, typeof(TEntity).FullName);
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
728if (EntityProxyFactory.IsProxyType(wrappedOwner.Entity.GetType()))
System\Data\Objects\ELinq\ELinqQueryState.cs (1)
242MethodInfo includeMethod = sourceQuery.GetType().GetMethod("Include", BindingFlags.Public | BindingFlags.Instance);
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (2)
107constant.Value.GetType() != typeof(object)) 109return Expression.Constant(constant.Value, constant.Value.GetType());
System\Data\Objects\ELinq\MethodCallTranslator.cs (2)
328return GetType().Name; 1533return GetType().Name;
System\Data\Objects\ELinq\Translator.cs (2)
40return this.GetType().Name; 526return GetType().Name;
System\Data\Objects\EntityEntry.cs (13)
91(WrappedEntity.IdentityType != Entity.GetType() && 1446Debug.Assert(oldComplexObject == null || (oldComplexObject.GetType() == newComplexObject.GetType()), "Cannot replace a complex object with an object of a different type, unless the original one was null"); 1587tmpTypeMetadata = _cache.GetOrAddStateManagerTypeMetadata(complexObject.GetType(), (EntitySet)this.EntitySet); 1602if (WrappedEntity.IdentityType != Entity.GetType() && // Is a proxy 1794throw new InvalidOperationException(System.Data.Entity.Strings.ObjectStateEntry_ComplexObjectUsedMultipleTimes(this.Entity.GetType().FullName, complexObject.GetType().FullName)); 2148throw new EntityException(System.Data.Entity.Strings.ObjectStateEntry_UnableToEnumerateCollection(n.Name, this.Entity.GetType().FullName)); 2271throw new EntityException(System.Data.Entity.Strings.ObjectStateEntry_UnableToEnumerateCollection(n.Name, this.Entity.GetType().FullName)); 3354throw EntityUtil.EntitiesHaveDifferentType(this.Entity.GetType().FullName, wrappedCurrentEntity.Entity.GetType().FullName); 3382throw EntityUtil.EntitiesHaveDifferentType(this.Entity.GetType().FullName, wrappedOriginalEntity.Entity.GetType().FullName);
System\Data\Objects\FieldDescriptor.cs (3)
93Debug.Fail(string.Format(CultureInfo.CurrentCulture, "The type {0} was not the expected scalar, enumeration, collection, structural, nominal, or reference type.", edmType.GetType())); 133if (!_itemType.IsAssignableFrom(item.GetType())) 160if (!_itemType.IsAssignableFrom(item.GetType()))
System\Data\Objects\Internal\EntityProxyFactory.cs (5)
133if (IsProxyType(instance.GetType()) && 134TryGetProxyType(instance.GetType(), out proxyTypeInfo)) 197return (EntityProxyFactory.TryGetProxyType(wrappedEntity.Entity.GetType(), out proxyInfo) && proxyInfo != null && 321Type type = entity.GetType(); 355Type type = entity.GetType();
System\Data\Objects\Internal\EntityWithChangeTrackerStrategy.cs (1)
58bool isProxy = entry.WrappedEntity.IdentityType != _entity.GetType();
System\Data\Objects\Internal\EntityWrapperFactory.cs (2)
58IEntityWrapper wrappedEntity = _delegateCache.Evaluate(entity.GetType())(entity); 69if (EntityProxyFactory.TryGetProxyType(entity.GetType(), out proxyTypeInfo))
System\Data\Objects\Internal\LightweightEntityWrapper.cs (2)
39Debug.Assert(!EntityProxyFactory.IsProxyType(entity.GetType()), "LightweightEntityWrapper only works with entities that are not proxies"); 62Debug.Assert(!EntityProxyFactory.IsProxyType(entity.GetType()), "LightweightEntityWrapper only works with entities that are not proxies");
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (7)
64throw new EntityException(System.Data.Entity.Strings.PocoEntityWrapper_UnableToSetFieldOrProperty(relatedEnd.TargetAccessor.PropertyName, _entity.GetType().FullName), ex); 96throw new EntityException(System.Data.Entity.Strings.PocoEntityWrapper_UnableToSetFieldOrProperty(relatedEnd.TargetAccessor.PropertyName, _entity.GetType().FullName), ex); 168relatedEnd.TargetAccessor.CollectionAdd = CreateCollectionAddFunction(entity.GetType(), relatedEnd.TargetAccessor.PropertyName); 176throw new EntityException(System.Data.Entity.Strings.PocoEntityWrapper_UnableToSetFieldOrProperty(relatedEnd.TargetAccessor.PropertyName, entity.GetType().FullName), ex); 227relatedEnd.TargetAccessor.CollectionRemove = CreateCollectionRemoveFunction(entity.GetType(), relatedEnd.TargetAccessor.PropertyName); 235throw new EntityException(System.Data.Entity.Strings.PocoEntityWrapper_UnableToSetFieldOrProperty(relatedEnd.TargetAccessor.PropertyName, entity.GetType().FullName), ex); 280Type entityType = _entity.GetType();
System\Data\Objects\ObjectContext.cs (3)
970throw EntityUtil.EntitiesHaveDifferentType(ose.Entity.GetType().FullName, originalEntity.GetType().FullName); 1221MetadataWorkspace.ImplicitLoadAssemblyForType(EntityUtil.GetEntityIdentityType(entity.GetType()), null);
System\Data\Objects\ObjectParameter.cs (1)
133this._type = value.GetType();
System\Data\Objects\ObjectStateManager.cs (4)
310var actualType = wrappedEntity.Entity.GetType(); 351throw EntityUtil.EntityTypeDoesNotMatchEntitySet(wrappedObject.Entity.GetType().Name, TypeHelpers.GetFullName(entitySet), argumentName); 3723StateManagerTypeMetadata typeMetadata = this.GetOrAddStateManagerTypeMetadata(EntityUtil.GetEntityIdentityType(entity.GetType()), entitySet); 3732throw EntityUtil.EntityTypeDoesNotMatchEntitySet(entity.GetType().FullName, entitySet.Name, "entity");
System\Data\Objects\ObjectViewQueryResultData.cs (1)
224if (e.Element.GetType().IsAssignableFrom(typeof(TElement)) &&
System\Data\Query\InternalTrees\Dump.cs (1)
561using (new AutoXml(this, v.GetType().Name, attrs)) {
System\Data\Query\InternalTrees\OpCopier.cs (1)
282throw new NotSupportedException(System.Data.Entity.Strings.Iqt_General_UnsupportedOp(op.GetType().FullName));
System\Data\Query\InternalTrees\Visitors.cs (1)
146throw new NotSupportedException(System.Data.Entity.Strings.Iqt_General_UnsupportedOp(op.GetType().FullName));
System\Data\Query\PlanCompiler\CTreeGenerator.cs (1)
647PlanCompiler.Assert(2 == n.Children.Count, string.Format(CultureInfo.InvariantCulture, "Non-Binary {0} encountered", n.Op.GetType().Name));
System\Data\Query\PlanCompiler\ITreeGenerator.cs (2)
977throw EntityUtil.NotSupported(System.Data.Entity.Strings.Cqt_General_UnsupportedExpression(e.GetType().FullName)); 2464if (e.Aggregates[i].GetType() == typeof(DbGroupAggregate))
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (2)
1885object constValue = op.Value.GetType().IsEnum ? 1886Convert.ChangeType(op.Value, op.Value.GetType().GetEnumUnderlyingType(), CultureInfo.InvariantCulture) :
System\Data\Query\ResultAssembly\BridgeDataRecord.cs (1)
477Debug.Fail("unexpected type of nested object result: " + result.GetType().ToString());
System\Data\SqlClient\SqlGen\Sql8ConformanceChecker.cs (1)
213throw EntityUtil.NotSupported(System.Data.Entity.Strings.Cqt_General_UnsupportedExpression(expression.GetType().FullName));
System\Data\SqlClient\SqlProviderServices.cs (2)
262throw EntityUtil.ProviderIncompatible(Strings.SqlProvider_NeedSqlDataReader(fromReader.GetType())); 415Type.GetTypeCode(value.GetType()) == TypeCode.Object)
System\Data\SqlClient\SqlSpatialServices.cs (2)
128Type providerValueType = providerValue.GetType(); 132if (TryGetSpatialServiceFromAssembly(providerValue.GetType().Assembly, out otherServices))
System\Data\SqlClient\SqlTypesAssembly.cs (1)
466if (providerValue != null && providerValue.GetType() == requiredProviderValueType)
System.Data.Entity.Design (12)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
588if (o.GetType() == typeof(bool))
System\Data\Entity\Design\Common\MetadataUtil.cs (2)
50factory.GetType().ToString())); 59factory.GetType().ToString()));
System\Data\Entity\Design\EntityCodeGenerator.cs (1)
603Type type = _instance.GetType();
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (2)
362string location = Strings.DbProviderServicesInformationLocationPath(providerConnection.GetType().Name, ssdlName); 378location = Strings.DbProviderServicesInformationLocationPath(providerConnection.GetType().Name, DbProviderManifest.StoreSchemaMapping);
System\Data\EntityModel\Emitters\CommentEmitter.cs (2)
70PropertyInfo pi = item.GetType().GetProperty("FullName"); 73pi = item.GetType().GetProperty("Name");
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
162Type typeOfElement = element.GetType();
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
595Debug.Fail("Unexpected Property.Type type: " + propertyType.GetType()); 698if (!property.Nullable && value.Equals(TypeSystem.GetDefaultValue(value.GetType())))
System\Data\EntityModel\Emitters\Utils.cs (1)
350return (reservingType == type.GetType());
System.Data.Linq (72)
ChangeConflicts.cs (1)
318if (!member.DeclaringType.Type.IsAssignableFrom(this.database.GetType())) {
ChangeDirector.cs (1)
316MetaType rowType = tracked.Type.GetInheritanceType(database.GetType());
ChangeTracker.cs (10)
86MetaType type = this.services.Model.GetMetaType(obj.GetType()); 138MetaType type = this.services.Model.GetTable(obj.GetType()).RowType; 153Type type = obj.GetType(); 253this.type = type.GetInheritanceType(current.GetType()); 358System.Diagnostics.Debug.Assert(originalState.GetType() == this.type.Type); 446Type instanceType = freshInstance.GetType(); 523Type instanceType = instance.GetType(); 524System.Diagnostics.Debug.Assert(instance.GetType() == this.type.Type); 631currentDiscriminator, original.GetType().Name, currentTypeFromDiscriminator); 636MetaType currentType = type.GetInheritanceType(this.current.GetType());
DataContext.cs (14)
166return Activator.CreateInstance(this.GetType(), new object[] { this.Connection, this.Mapping.MappingSource }); 170MetaModel model = mapping.GetModel(this.GetType()); 417FieldInfo[] fields = schema.GetType().GetFields(BindingFlags.Public | BindingFlags.Instance); 558Array items = Array.CreateInstance(entity.GetType(), 1); 608MetaType inheritanceRoot = services.Model.GetMetaType(o.GetType()).InheritanceRoot; 1222MetaType type = this.metaTable.RowType.GetInheritanceType(entity.GetType()); 1409MetaType type = this.metaTable.RowType.GetInheritanceType(entity.GetType()); 1464if (entity.GetType() != original.GetType()) { 1470MetaType type = this.metaTable.RowType.GetInheritanceType(entity.GetType()); 1504if (entity.GetType() != original.GetType()) { 1573MetaType type = this.Context.Mapping.GetMetaType(entity.GetType()); 1610MetaType type = this.Context.Mapping.GetMetaType(entity.GetType());
DataServices.cs (2)
82yield return new RelatedItem(otherType.GetInheritanceType(otherItem.GetType()), otherItem); 86yield return new RelatedItem(otherType.GetInheritanceType(value.GetType()), value);
DbConvert.cs (1)
30Type fromType = value.GetType();
Mapping\AttributedMetaModel.cs (2)
428if ((codeValue.GetType() == typeof(string) && ((string)codeValue).Trim().Length == 0 && 429d.GetType() == typeof(string) && ((string)d).Trim().Length == 0) ||
Mapping\MappedMetaModel.cs (2)
511if ((keyValue.GetType() == typeof(string) && ((string)keyValue).Trim().Length == 0 && 512d.GetType() == typeof(string) && ((string)d).Trim().Length == 0) ||
SqlClient\Common\InheritanceRules.cs (1)
73if (providerType.IsFixedSize && rawCode.GetType()==typeof(string)) {
SqlClient\Common\SqlFactory.cs (3)
307Type type = typeOf.InheritanceCode.GetType(); 467Type type = value.GetType(); 480Type clrType = value.GetType();
SqlClient\Common\SqlNodeAnnotations.cs (1)
25uniqueTypes[annotation.GetType()] = String.Empty;
SqlClient\Common\TypeSystem.cs (4)
131return FindSequenceMethod(name, new Type[] {sequence.GetType()}, new Type[] {GetElementType(sequence.GetType())}); 252if (obj.GetType() != this.GetType())
SqlClient\Query\QueryConverter.cs (7)
803type = cons.Value.GetType(); 933if (typeof(int).IsAssignableFrom(constTakeCount.Value.GetType()) && ((int)constTakeCount.Value) < 0) { 945if (typeof(int).IsAssignableFrom(constSkipCount.Value.GetType()) && ((int)constSkipCount.Value) < 0) { 1047if (typeof(int).IsAssignableFrom(constSkipCount.Value.GetType()) && ((int)constSkipCount.Value) < 0) { 1890if (value != null && typeof(Type).IsAssignableFrom(value.GetType())) { 2411itemMetaType = metaTable.RowType.GetInheritanceType(conItem.Value.GetType()); 2593Type entityType = conItem.Value.GetType();
SqlClient\Query\SqlBinder.cs (2)
430SqlExpression @default = sql.Value(discriminator.GetType(), tc.Whens[0].Match.SqlType, defaultType.InheritanceCode, true, tc.SourceExpression); 435values.Add(sql.Value(discriminator.GetType(), when.Match.SqlType, ((SqlValue)when.Match).Value, true, tc.SourceExpression));
SqlClient\Query\SqlBooleanizer.cs (1)
24if (value.Value != null && value.Value.GetType() == typeof(bool) && (bool)value.Value == false) {
SqlClient\Query\SqlFormatter.cs (1)
1239Type t = value.GetType();
SqlClient\Query\TypeSource.cs (1)
87sourceType = val.Value.GetType();
SqlClient\Reader\ObjectReaderCompiler.cs (3)
810int iGlobal = this.AddGlobal(d.GetType(), d); 811this.GenerateGlobalAccess(iGlobal, d.GetType()); 813MethodInfo miInvoke = d.GetType().GetMethod(
SqlClient\SqlProvider.cs (10)
153if (String.CompareOrdinal(con.GetType().FullName, SqlCeConnectionTypeName) == 0) { 369if (connection.GetType().FullName == SqlCeTransactionTypeName) { 380if (con.GetType().FullName == SqlCeConnectionTypeName) { 415readerType = con.GetType().Module.GetType(SqlCeDataReaderTypeName); 544Type engineType = this.conManager.Connection.GetType().Module.GetType("System.Data.SqlServerCe.SqlCeEngine"); 1158PropertyInfo piPrecision = p.GetType().GetProperty("Precision"); 1162PropertyInfo piScale = p.GetType().GetProperty("Scale"); 1176writer.WriteLine("-- Context: {0}({1}) Model: {2} Build: {3}", this.GetType().Name, this.Mode, this.services.Model.GetType().Name, ThisAssembly.InformationalVersion); 1855if (parameterValue != null && parameterValue.GetType() != pi.Parameter.ClrType) {
SqlClient\SqlTypeSystemProvider.cs (5)
985PropertyInfo piSqlDbType = parameter.GetType().GetProperty("SqlDbType"); 990PropertyInfo piPrecision = parameter.GetType().GetProperty("Precision"); 994PropertyInfo piScale = parameter.GetType().GetProperty("Scale"); 1040Type vType = value.GetType(); 1375Type clrType = (o != null) ? o.GetType() : typeof(object);
System.Data.Services (55)
parent\Client\System\Data\Services\Client\BatchStream.cs (3)
875Error.ThrowObjectDisposed(this.GetType()); 1464Error.ThrowObjectDisposed(this.GetType()); 1565Error.ThrowObjectDisposed(this.GetType());
System\Data\Services\DataService.cs (3)
455Strings.DataService_ContextTypeIsAbstract(dataContextType, this.GetType())); 1898Type dataServiceType = this.GetType(); 1924if (!dataContextType.IsAssignableFrom(dataSourceInstance.GetType()))
System\Data\Services\Internal\ExpandedWrapper.cs (1)
50int expectedLength = this.GetType().GetGenericArguments().Length - 1;
System\Data\Services\Parsing\WebConvert.cs (11)
128if (value.GetType() == typeof(byte[])) 133else if (value.GetType() == typeof(System.Data.Linq.Binary)) 146if (IsKeyTypeQuoted(value.GetType())) 155if (value.GetType() == typeof(DateTime)) 159else if (value.GetType() == typeof(Decimal)) 163else if (value.GetType() == typeof(Guid)) 167else if (value.GetType() == typeof(Int64)) 171else if (value.GetType() == typeof(Single)) 176else if (value.GetType() == typeof(double)) 190else if (IsKeyTypeQuoted(value.GetType())) 620Type valueType = value.GetType();
System\Data\Services\Providers\BaseServiceProvider.cs (1)
302return this.GetNonPrimitiveType(resource.GetType());
System\Data\Services\Providers\ObjectContextServiceProvider.cs (5)
263bool useBasicExpandProvider = !(typeof(ObjectQuery).IsAssignableFrom(source.GetType())); 1560Type facetValueType = facetValue.GetType(); 1631if (!writeCustomElements && (metadataProperty.Value == null || metadataProperty.Value.GetType() != typeof(XElement))) 1635else if (writeCustomElements && metadataProperty.Value != null && metadataProperty.Value.GetType() == typeof(XElement)) 2053MethodInfo createObjectMethod = context.GetType().GetMethod("CreateObject", BindingFlags.Public | BindingFlags.Instance);
System\Data\Services\Providers\ResourceProperty.cs (1)
254throw new ArgumentException(Strings.InvalidEnumValue(kind.GetType().Name), parameterName);
System\Data\Services\Serializers\Deserializer.cs (1)
1099if (requestValue == null || WebUtil.IsPrimitiveType(requestValue.GetType()))
System\Data\Services\Serializers\JsonDeserializer.cs (3)
345(segmentInfo.TargetKind == RequestTargetKind.OpenProperty && WebUtil.IsPrimitiveType(nonEntityResource.GetType()))) 355(segmentInfo.TargetKind == RequestTargetKind.OpenProperty && WebUtil.IsPrimitiveType(jsonObject.GetType())) || 640if (propertyValue == null || WebUtil.IsPrimitiveType(propertyValue.GetType()))
System\Data\Services\Serializers\JsonSerializer.cs (15)
316Type valueType = value.GetType(); 329else if (typeof(Boolean) == value.GetType()) 333else if (typeof(Byte) == value.GetType()) 337else if (typeof(DateTime) == value.GetType()) 341else if (typeof(Decimal) == value.GetType()) 345else if (typeof(Double) == value.GetType()) 349else if (typeof(Guid) == value.GetType()) 353else if (typeof(Int16) == value.GetType()) 357else if (typeof(Int32) == value.GetType()) 361else if (typeof(Int64) == value.GetType()) 365else if (typeof(Single) == value.GetType()) 369else if (typeof(byte[]) == value.GetType()) 377Debug.Assert(typeof(System.Data.Linq.Binary) == value.GetType(), "typeof(Binary) == value.GetType() (" + value.GetType() + ")"); 764(resourceType.InstanceType.IsAssignableFrom(customObject.GetType())),
System\Data\Services\Serializers\PlainXmlSerializer.cs (3)
161throw new InvalidOperationException(Strings.Serializer_UnsupportedTopLevelType(element.GetType())); 184throw new InvalidOperationException(Strings.Serializer_UnsupportedTopLevelType(element.GetType())); 332Debug.Assert(propertyResourceType.InstanceType == value.GetType(), "propertyResourceType.Type == valueType");
System\Data\Services\Serializers\SyndicationSerializer.cs (3)
191Type propertyType = element == null ? typeof(string) : element.GetType(); 783Type customObjectType = customObject.GetType(); 891valueType = value.GetType();
System\Data\Services\WebUtil.cs (5)
211throw new ArgumentException(Strings.InvalidEnumValue(kind.GetType().Name), parameterName); 226throw new ArgumentException(Strings.InvalidEnumValue(kind.GetType().Name), parameterName); 664ResourceType r = ResourceType.GetPrimitiveResourceType(obj.GetType()); 697throw new DataServiceException(500, Strings.BadProvider_InvalidTypeSpecified(obj.GetType().FullName)); 795Type elementType = element.GetType();
System.Data.Services.Client (116)
parent\Server\System\Data\Services\Parsing\WebConvert.cs (10)
128if (value.GetType() == typeof(byte[])) 146if (IsKeyTypeQuoted(value.GetType())) 155if (value.GetType() == typeof(DateTime)) 159else if (value.GetType() == typeof(Decimal)) 163else if (value.GetType() == typeof(Guid)) 167else if (value.GetType() == typeof(Int64)) 171else if (value.GetType() == typeof(Single)) 185else if (value.GetType() == typeof(double)) 190else if (IsKeyTypeQuoted(value.GetType())) 620Type valueType = value.GetType();
parent\Server\System\Data\Services\Providers\EntityPropertyMappingInfo.cs (2)
152PropertyInfo pi = element.GetType().GetProperty(srcPathPart, BindingFlags.Instance | BindingFlags.Public); 153Debug.Assert(pi != null, "Cannot find property " + srcPathPart + "on type " + element.GetType().Name);
System\Data\Services\Client\ALinq\Evaluator.cs (2)
176if (constantValue != null && constantType.IsArray && constantType.GetElementType() == constantValue.GetType().GetElementType()) 178constantType = constantValue.GetType();
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (2)
201constant.Value.GetType() != typeof(object)) 203return Expression.Constant(constant.Value, constant.Value.GetType());
System\Data\Services\Client\ALinq\QueryOptionExpression.cs (2)
43Debug.Assert(previous.GetType() == this.GetType(), "other.GetType == this.GetType() -- otherwise it's not the same specification");
System\Data\Services\Client\ALinq\ResourceSetExpression.cs (2)
235QueryOptionExpression old = this.sequenceQueryOptions.Where(o => o.GetType() == qoe.GetType()).FirstOrDefault();
System\Data\Services\Client\ALinq\SkipQueryOptionExpression.cs (2)
59Debug.Assert(previous.GetType() == this.GetType(), "other.GetType == this.GetType() -- otherwise it's not the same specification");
System\Data\Services\Client\ALinq\TakeQueryOptionExpression.cs (2)
59Debug.Assert(previous.GetType() == this.GetType(), "other.GetType == this.GetType() -- otherwise it's not the same specification");
System\Data\Services\Client\AtomMaterializer.cs (28)
60Debug.Assert(materializer.GetType() == typeof(AtomMaterializer), "materializer.GetType() == typeof(AtomMaterializer)"); 77Debug.Assert(entry.GetType() == typeof(AtomEntry), "entry.GetType() == typeof(AtomEntry)"); 78Debug.Assert(path.GetType() == typeof(ProjectionPath), "path.GetType() == typeof(ProjectionPath)"); 98Debug.Assert(materializer.GetType() == typeof(AtomMaterializer), "materializer.GetType() == typeof(AtomMaterializer)"); 99Debug.Assert(entry.GetType() == typeof(AtomEntry), "entry.GetType() == typeof(AtomEntry)"); 100Debug.Assert(path.GetType() == typeof(ProjectionPath), "path.GetType() == typeof(ProjectionPath)"); 110Debug.Assert(entry.GetType() == typeof(AtomEntry), "entry.GetType() == typeof(AtomEntry)"); 130Debug.Assert(materializer.GetType() == typeof(AtomMaterializer), "materializer.GetType() == typeof(AtomMaterializer)"); 131Debug.Assert(entry.GetType() == typeof(AtomEntry), "entry.GetType() == typeof(AtomEntry)"); 147Debug.Assert(materializer.GetType() == typeof(AtomMaterializer), "materializer.GetType() == typeof(AtomMaterializer)"); 148Debug.Assert(entry.GetType() == typeof(AtomEntry), "entry.GetType() == typeof(AtomEntry)"); 149Debug.Assert(path.GetType() == typeof(ProjectionPath), "path.GetType() == typeof(ProjectionPath)"); 160Debug.Assert(materializer.GetType() == typeof(AtomMaterializer), "materializer.GetType() == typeof(AtomMaterializer)"); 161Debug.Assert(entry.GetType() == typeof(AtomEntry), "entry.GetType() == typeof(AtomEntry)"); 172Debug.Assert(materializer.GetType() == typeof(AtomMaterializer), "materializer.GetType() == typeof(AtomMaterializer)"); 173Debug.Assert(entry.GetType() == typeof(AtomEntry), "entry.GetType() == typeof(AtomEntry)"); 585Action<object, object> addMethod = GetAddToCollectionDelegate(list.GetType()); 853if (!requiredType.IsAssignableFrom(entry.ResolvedObject.GetType())) 857"a previously created instance of type '" + entry.ResolvedObject.GetType()); 877if (!requiredType.IsAssignableFrom(entry.ResolvedObject.GetType())) 879throw Error.InvalidOperation(Strings.Deserialize_Current(requiredType, entry.ResolvedObject.GetType())); 1183Action<object, object> addMethod = GetAddToCollectionDelegate(list.GetType()); 1581property.NullablePropertyType == list.GetType() && 1617entry.ActualType = ClientType.Create(entry.ResolvedObject.GetType()); 1640throw Error.InvalidOperation(Strings.Deserialize_Current(expectedEntryType, entry.ResolvedObject.GetType())); 1643entry.ActualType = ClientType.Create(entry.ResolvedObject.GetType()); 1812if (!collectionType.ElementType.IsAssignableFrom(item.GetType())) 1815item.GetType().FullName,
System\Data\Services\Client\AtomMaterializerLog.cs (1)
406ClientType type = ClientType.Create(entity.GetType());
System\Data\Services\Client\BatchStream.cs (3)
875Error.ThrowObjectDisposed(this.GetType()); 1464Error.ThrowObjectDisposed(this.GetType()); 1565Error.ThrowObjectDisposed(this.GetType());
System\Data\Services\Client\Binding\BindingEntityInfo.cs (3)
89Debug.Assert(BindingEntityInfo.IsEntityType(target.GetType()), "Argument 'target' must be an entity type."); 103return BindingEntityInfo.GetEntitySetAttribute(target.GetType()); 236Type sourceType = source.GetType();
System\Data\Services\Client\Binding\BindingGraph.cs (9)
74BindingEntityInfo.IsDataServiceCollection(collection.GetType()), 95Type entityType = BindingUtils.GetCollectionEntityType(collection.GetType()); 177throw new InvalidOperationException(Strings.DataBinding_NotifyPropertyChangedNotImpl(target.GetType())); 186throw new InvalidOperationException(Strings.DataBinding_EntityAlreadyInCollection(target.GetType())); 245BindingEntityInfo.BindingPropertyInfo bpi = BindingEntityInfo.GetObservableProperties(parent.GetType()) 324foreach (var entity in this.graph.Select(o => BindingEntityInfo.IsEntityType(o.GetType()) && !this.observer.IsContextTrackingEntity(o))) 436throw new InvalidOperationException(Strings.DataBinding_NotifyPropertyChangedNotImpl(target.GetType())); 441throw new InvalidOperationException(Strings.DataBinding_ComplexObjectAssociatedWithMultipleEntities(target.GetType())); 456foreach (BindingEntityInfo.BindingPropertyInfo bpi in BindingEntityInfo.GetObservableProperties(entity.GetType()))
System\Data\Services\Client\Binding\BindingObserver.cs (12)
207.Invoke(null, new object[] { sourcePropertyValue, sourceProperty, source.GetType() }); 280Debug.Assert(BindingEntityInfo.IsDataServiceCollection(collection.GetType()), "We only register this event for DataServiceCollections."); 384Debug.Assert(BindingEntityInfo.IsEntityType(target.GetType()), "target must be an entity type."); 522Debug.Assert(BindingEntityInfo.IsEntityType(target.GetType()), "target must be an entity type."); 599Debug.Assert(BindingEntityInfo.IsEntityType(source.GetType()), "source must be an entity with keys."); 720if (!BindingEntityInfo.IsEntityType(entity.GetType())) 726Debug.Assert(BindingEntityInfo.IsEntityType(entity.GetType()), "entity must be an entity with keys."); 785if (!BindingEntityInfo.IsEntityType(target.GetType())) 937Debug.Assert(BindingEntityInfo.IsEntityType(source.GetType()), "source must be an entity with keys."); 942Debug.Assert(BindingEntityInfo.IsEntityType(target.GetType()), "target must be an entity with keys."); 953Debug.Assert(BindingEntityInfo.IsEntityType(entity.GetType()), "entity must be an entity with keys."); 968if (!BindingEntityInfo.IsEntityType(target.GetType()))
System\Data\Services\Client\Binding\BindingUtils.cs (2)
32throw new InvalidOperationException(Strings.DataBinding_Util_UnknownEntitySetName(entity.GetType().FullName)); 63Debug.Assert(BindingEntityInfo.IsDataServiceCollection(oec.GetType()), "Must be an DataServiceCollection.");
System\Data\Services\Client\ClientConvert.cs (3)
218return StorageType.Binary == (StorageType)IndexOfStorage(value.GetType()); 230byte[] bytes = (byte[])binaryValue.GetType().InvokeMember("ToArray", Flags, null, binaryValue, null, System.Globalization.CultureInfo.InvariantCulture); 298switch ((StorageType)IndexOfStorage(propertyValue.GetType()))
System\Data\Services\Client\ClientType.cs (8)
976Debug.Assert(this.PropertyType.IsAssignableFrom(instance.GetType()), "unexpected collection instance"); 977Debug.Assert((null == value) || this.CollectionType.IsAssignableFrom(value.GetType()), "unexpected collection value to add"); 1021Debug.Assert(this.PropertyType.IsAssignableFrom(instance.GetType()), "unexpected dictionary instance"); 1022Debug.Assert((null == value) || this.CollectionType.IsAssignableFrom(value.GetType()), "unexpected dictionary value to set"); 1030Debug.Assert(this.PropertyType.IsAssignableFrom(instance.GetType()), "unexpected collection instance"); 1031Debug.Assert((null == value) || this.CollectionType.IsAssignableFrom(value.GetType()), "unexpected collection value to add"); 1041Debug.Assert((null == value) || this.PropertyType.IsAssignableFrom(value.GetType()), "unexpected property value to set"); 1048throw Error.InvalidOperation(Strings.ClientType_MissingProperty(value.GetType().ToString(), propertyName));
System\Data\Services\Client\DataServiceContext.cs (21)
920ClientType clientType = ClientType.Create(entity.GetType()); 1428ClientType parentType = ClientType.Create(source.GetType()); 1436ClientType childType = ClientType.Create(target.GetType()); 1814bool collectionProperty = (null != ClientType.Create(source.GetType()).GetProperty(sourceProperty, false).CollectionType); 1845Debug.Assert(null != descriptor.Entity && ClientType.Create(descriptor.Entity.GetType()).IsEntityType, "must be entity type to attach"); 2215Type entityType = descriptor.Entity.GetType(); 2323ClientType clientType = ClientType.Create(entity.GetType()); 2391bool collection = (null != ClientType.Create(link.Source.GetType()).GetProperty(link.SourceProperty, false).CollectionType); 2523if (!ClientType.Create(entity.GetType()).IsEntityType) 2537if (ClientType.Create(entity.GetType()).KeyCount <= 0) 2703bool collection = (null != ClientType.Create(binding.Source.GetType()).GetProperty(binding.SourceProperty, false).CollectionType); 2827Version requestVersion = ClientType.Create(box.Entity.GetType()).EpmIsV1Compatible ? Util.DataServiceVersion1 : Util.DataServiceVersion2; 2854Version requestVersion = ClientType.Create(box.Entity.GetType()).EpmIsV1Compatible ? Util.DataServiceVersion1 : Util.DataServiceVersion2; 2908ClientType type = ClientType.Create(box.Entity.GetType()); 3045clientType = ClientType.Create(box.Entity.GetType()); 3237ClientType type = ClientType.Create(entity.GetType()); 3483ClientType type = ClientType.Create(source.GetType()); 3730ClientType type = ClientType.Create(this.entity.GetType()); 4614ClientType type = ClientType.Create(entityDescriptor.Entity.GetType()); 5132ClientType type = ClientType.Create(entityDescriptor.Entity.GetType()); 5566QueryComponents qc = new QueryComponents(null, Util.DataServiceVersionEmpty, entityDescriptor.Entity.GetType(), null, null);
System\Data\Services\Client\DataServiceStreamResponse.cs (1)
125Error.ThrowObjectDisposed(this.GetType());
System\Data\Services\Client\Util.cs (1)
462foreach (var property in collection.GetType().GetProperties(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public))
System.Data.Services.Design (8)
System\Data\EntityModel\Emitters\CommentEmitter.cs (2)
63PropertyInfo pi = item.GetType().GetProperty("FullName"); 66pi = item.GetType().GetProperty("Name");
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
211Type typeOfElement = element.GetType();
System\Data\EntityModel\Emitters\PropertyEmitter.cs (4)
520Debug.Fail("Unexpected Property.Type type: " + propertyType.GetType()); 637if (!property.Nullable && value.Equals(TypeSystem.GetDefaultValue(value.GetType()))) 645if (!property.Nullable && value.Equals(TypeSystem.GetDefaultValue(value.GetType()))) 653if (!property.Nullable && value.Equals(TypeSystem.GetDefaultValue(value.GetType())))
System\Data\EntityModel\Emitters\Utils.cs (1)
330return (reservingType == type.GetType());
System.Data.SqlXml (31)
System\Xml\Xsl\ListBase.cs (6)
117if (!IsCompatibleType(value.GetType())) 125if (!IsCompatibleType(value.GetType())) 137if (!IsCompatibleType(value.GetType())) 144if (!IsCompatibleType(value.GetType())) 151if (!IsCompatibleType(value.GetType())) 158if (IsCompatibleType(value.GetType())) {
System\Xml\Xsl\QIL\QilTypeChecker.cs (2)
903Type clrType = ((QilLiteral) node).Value.GetType(); 909Check(clrTypeClass.IsAssignableFrom(node.GetType()), node, "Node must be instance of " + clrTypeClass.Name);
System\Xml\Xsl\QIL\WhitespaceRule.cs (1)
72Debug.Assert(this.GetType() == typeof(WhitespaceRule), "Serialization of WhitespaceRule subclasses is not implemented");
System\Xml\Xsl\Runtime\XmlQueryContext.cs (4)
183throw new XslTransformException(Res.XmlIl_CantResolveEntity, uriRelative, dataSource.GetType().ToString()); 224return new XmlExtensionFunction(name, namespaceUri, -1, instance.GetType(), XmlQueryRuntime.LateBoundFlags).CanBind(); 248XmlExtensionFunction extFunc = this.extFuncsLate.Bind(name, namespaceUri, args.Length, instance.GetType(), XmlQueryRuntime.LateBoundFlags); 281if (xmlTypeFormalArg.TypeCode == XmlTypeCode.Item || !clrTypeFormalArg.IsAssignableFrom(objActualArgs[i].GetType()))
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (9)
466Debug.Assert(XmlILTypeHelper.GetStorageType(xmlType).IsAssignableFrom(value.GetType()), 468Debug.Assert(destinationType == XsltConvert.ObjectType || !destinationType.IsAssignableFrom(value.GetType()), 535Debug.Assert(destinationType.IsAssignableFrom(value.GetType()), "ChangeType from type " + value.GetType().Name + " to type " + destinationType.Name + " failed"); 556if (value.GetType() == XsltConvert.DateTimeType) 561if (value.GetType() != XsltConvert.DoubleType) 597Type sourceType = value.GetType(); 645Debug.Assert(XmlILTypeHelper.GetStorageType(xmlType).IsAssignableFrom(value.GetType()), "Xml type " + xmlType + " is not represented in ILGen as " + value.GetType().Name);
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
254Debug.Fail("Unexpected type: " + o.GetType().ToString());
System\Xml\Xsl\XmlQueryTypeFactory.cs (4)
1116if (type.GetType() == typeof(ItemType)) 1118else if (type.GetType() == typeof(ChoiceType)) 1120else if (type.GetType() == typeof(SequenceType)) 1123Debug.Fail("Don't know how to serialize " + type.GetType().ToString());
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
194throw new XslLoadException(Res.Xslt_CannotLoadStylesheet, uri.ToString(), input == null ? "null" : input.GetType().ToString());
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
327if (Type.GetTypeCode(value.GetType()) == TypeCode.Object) {
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (2)
164MethodInfo method = FindBestMethod(extension.GetType().GetMethods(bindingFlags), /*ignoreCase:*/true, /*publicOnly:*/false, name, argTypes); 173MethodInfo method = FindBestMethod(extension.GetType().GetMethods(bindingFlags), /*ignoreCase:*/false, /*publicOnly:*/true, name, argTypes);
System.Drawing (24)
commonui\System\Drawing\Advanced\Font.cs (1)
784GetType().Name,
commonui\System\Drawing\Advanced\FontFamily.cs (1)
245return string.Format(CultureInfo.CurrentCulture, "[{0}: Name={1}]", GetType().Name, this.Name);
commonui\System\Drawing\Advanced\Gdiplus.cs (4)
3219int size = (int)Marshal.SizeOf(pt.GetType()); 3222pt = (GPPOINTF) UnsafeNativeMethods.PtrToStructure((IntPtr)((long)memory+index*size), pt.GetType()); 3241int size = (int)Marshal.SizeOf(pt.GetType()); 3244pt = (GPPOINT) UnsafeNativeMethods.PtrToStructure((IntPtr)((long)memory+index*size), pt.GetType());
commonui\System\Drawing\Advanced\PointF.cs (2)
209comp.GetType().Equals(this.GetType());
commonui\System\Drawing\Advanced\SizeF.cs (2)
225(comp.GetType().Equals(GetType()));
commonui\System\Drawing\Advanced\StringFormat.cs (1)
72if (obj.GetType() != typeof(CharacterRange))
commonui\System\Drawing\Color.cs (1)
1746sb.Append(GetType().Name);
commonui\System\Drawing\Design\ToolboxItem.cs (5)
492if (!(obj.GetType() == this.GetType())) { 828Debug.WriteLine("Persisting: " + GetType().Name); 999if (value != null && !value.GetType().IsSerializable) { 1000throw new ArgumentException(SR.GetString(SR.ToolboxItemValueNotSerializable, value.GetType().FullName));
commonui\System\Drawing\Icon.cs (2)
304throw new ObjectDisposedException(GetType().Name); 608throw new InvalidOperationException(SR.GetString(SR.IllegalState, GetType().Name));
commonui\System\Drawing\Printing\PrintingPermission.cs (3)
173securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace('\"', '\'')); 197if (className == null || className.IndexOf(this.GetType().FullName) == -1) {
commonui\System\Drawing\ToolboxBitmapAttribute.cs (1)
170return GetImage(component.GetType(), large);
misc\ClientUtils.cs (1)
134System.Diagnostics.Debug.Assert(Enum.GetValues(enumValue.GetType()).Length == enumValues.Length, "Not all the enum members were passed in.");
System.IdentityModel (91)
System\IdentityModel\Claims\ClaimsAuthenticationManager.cs (1)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
System\IdentityModel\Claims\ClaimsAuthorizationManager.cs (1)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
System\IdentityModel\Claims\WindowsClaimSet.cs (1)
181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
334throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName)); 557throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
System\IdentityModel\Configuration\TimeSpanOrInfiniteConverter.cs (1)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.GetString(SR.ID8028, typeof(TimeSpan), value.GetType()));
System\IdentityModel\Configuration\TimeSpanOrInfiniteValidator.cs (1)
19if (value.GetType() == typeof(TimeSpan) && (TimeSpan)value == TimeSpan.MaxValue)
System\IdentityModel\CryptoHelper.cs (3)
1274|| (defaultObject != null && defaultObject.GetType() == algorithmObject.GetType())) 1282Type algorithmType = algorithmObject.GetType();
System\IdentityModel\Diagnostics\SecurityTraceRecordHelper.cs (2)
214writer.WriteAttributeString("Type", _securityToken.GetType().ToString()); 231writer.WriteElementString("Warning", SR.GetString(SR.TraceUnableToWriteToken, _securityToken.GetType().ToString()));
System\IdentityModel\EnvelopedSignatureTransform.cs (1)
46throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedInputTypeForTransform, input.GetType())));
System\IdentityModel\ExclusiveCanonicalizationTransform.cs (2)
109throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedInputTypeForTransform, input.GetType()))); 139throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedInputTypeForTransform, input.GetType())));
System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
204throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (2)
1350throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3013, elementName, elementValue.GetType()))); 2073throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3013, elementName, elementValue.GetType())));
System\IdentityModel\RsaSignatureCookieTransform.cs (2)
210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ID6035, HashName, verificationKeys[0].GetType().FullName), e)); 282throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ID6035, HashName, signingKey.GetType().FullName), e));
System\IdentityModel\SecurityTokenService.cs (3)
606throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2012, typeof(TypedAsyncResult<RSTR>), result.GetType()))); 808throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2004, typeof(TypedAsyncResult<RSTR>), state.Result.GetType()))); 926throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2004, typeof(TypedAsyncResult<RSTR>), state.Result.GetType())));
System\IdentityModel\Selectors\CustomUserNameSecurityTokenAuthenticator.cs (1)
28return SecurityUtils.CreateAuthorizationPolicies(new UserNameClaimSet(userName, validator.GetType().Name));
System\IdentityModel\Selectors\SamlSecurityTokenAuthenticator.cs (2)
73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SamlTokenAuthenticatorCanOnlyProcessSamlTokens, token.GetType().ToString()))); 237return SecurityUtils.CreateIdentity(rsaKeyIdentifierClause.Rsa.ToXmlString(false), this.GetType().Name);
System\IdentityModel\Selectors\SecurityTokenAuthenticator.cs (5)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SR.GetString(SR.CannotValidateSecurityTokenType, this, token.GetType()))); 45tokenType = tokenType ?? token.GetType().ToString(); 52string errorMsg = SR.GetString(SR.CannotValidateSecurityTokenType, this, token.GetType()); 56tokenType = tokenType ?? token.GetType().ToString(); 66tokenType = tokenType ?? token.GetType().ToString();
System\IdentityModel\Selectors\SecurityTokenRequirement.cs (2)
165if (dictionaryValue != null && !typeof(TValue).IsAssignableFrom(dictionaryValue.GetType())) 167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.SecurityTokenRequirementHasInvalidTypeForProperty, propertyName, dictionaryValue.GetType(), typeof(TValue))));
System\IdentityModel\Selectors\SecurityTokenResolver.cs (1)
89throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
System\IdentityModel\Selectors\UserNamePasswordValidator.cs (1)
54SR.GetString(SR.UserNameAuthenticationFailed, this.provider.GetType().Name)));
System\IdentityModel\Selectors\X509CertificateStore.cs (7)
126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.X509FindValueMismatch, findType, typeof(string), findValue.GetType()))); 138throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.X509FindValueMismatchMulti, findType, typeof(string), typeof(byte[]), findValue.GetType()))); 154throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.X509FindValueMismatch, findType, typeof(string), findValue.GetType()))); 162throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.X509FindValueMismatch, findType, typeof(string), findValue.GetType()))); 170throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.X509FindValueMismatch, findType, typeof(string), findValue.GetType()))); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.X509FindValueMismatchMulti, findType, typeof(string), typeof(byte[]), findValue.GetType()))); 204throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.X509FindValueMismatchMulti, findType, typeof(string), typeof(byte[]), findValue.GetType())));
System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
System\IdentityModel\StrTransform.cs (2)
95throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedInputTypeForTransform, input.GetType()))); 124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedInputTypeForTransform, input.GetType())));
System\IdentityModel\Tokens\EncryptedSecurityTokenHandler.cs (2)
318SecurityTokenHandler securityTokenHandler = this.ContainingCollection[encryptedToken.Token.GetType()]; 325throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID4224, encryptedToken.Token.GetType()));
System\IdentityModel\Tokens\GenericXmlSecurityToken.cs (4)
157if (this.internalTokenReference != null && typeof(T) == this.internalTokenReference.GetType()) 160if (this.externalTokenReference != null && typeof(T) == this.externalTokenReference.GetType()) 168if (this.internalTokenReference != null && typeof(T) == this.internalTokenReference.GetType()) 171if (this.externalTokenReference != null && typeof(T) == this.externalTokenReference.GetType())
System\IdentityModel\Tokens\IssuerNameRegistry.cs (1)
58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
System\IdentityModel\Tokens\KeyInfoSerializer.cs (3)
145throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.StandardsManagerCannotWriteObject, token.GetType()))); 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.StandardsManagerCannotWriteObject, keyIdentifier.GetType()))); 318throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.StandardsManagerCannotWriteObject, keyIdentifierClause.GetType())));
System\IdentityModel\Tokens\RsaSecurityToken.cs (1)
196SR.GetString(SR.TokenDoesNotSupportKeyIdentifierClauseCreation, GetType().Name, typeof(T).Name)));
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
1647throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID1064, token.GetType().ToString())); 4971new InvalidOperationException(SR.GetString(SR.ID4107, data.GetType().AssemblyQualifiedName)));
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (6)
783throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID1067, token.GetType().ToString())); 967throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID1033, token.GetType().ToString())); 2066throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4081, condition.GetType()))); 2291throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4086, statement.GetType()))); 2494throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("subjectSki", SR.GetString(SR.ID4091, subjectSki.GetType())); 3123throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.ID4217, token.GetType(), typeof(SamlSecurityToken))));
System\IdentityModel\Tokens\SamlSubject.cs (1)
242this.identity = SecurityUtils.CreateIdentity(identityClaim.Resource.ToString(), this.GetType().Name);
System\IdentityModel\Tokens\SecurityToken.cs (3)
24return new LocalIdKeyIdentifierClause(this.Id, this.GetType()) as T; 27SR.GetString(SR.TokenDoesNotSupportKeyIdentifierClauseCreation, GetType().Name, typeof(T).Name))); 34return localKeyIdentifierClause.Matches(this.Id, this.GetType());
System\IdentityModel\Tokens\SecurityTokenHandler.cs (3)
287throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName))); 294TD.TokenValidationSuccess(this.EventTraceActivity, token.GetType().ToString(), token.Id); 302TD.TokenValidationFailure(this.EventTraceActivity, token.GetType().ToString(), token.Id, errorMessage);
System\IdentityModel\Tokens\SecurityTokenHandlerCollection.cs (4)
151return this[token.GetType()]; 364throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4011, token.GetType()))); 439throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4010, token.GetType()))); 461throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4010, token.GetType())));
System\IdentityModel\Tokens\SessionSecurityTokenCache.cs (1)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (4)
255throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4010, tokenDescriptor.Token.GetType().ToString()))); 258(principal.Identities as ReadOnlyCollection<ClaimsIdentity>)[0].BootstrapContext = new BootstrapContext(tokenDescriptor.Token, bootstrapTokenCollection[tokenDescriptor.Token.GetType()]); 588throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4292, token.GetType().ToString(), this.GetType().ToString())));
System\IdentityModel\Tokens\TokenReplayCache.cs (1)
22throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
System\IdentityModel\Tokens\WindowsSecurityToken.cs (1)
115throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
System\IdentityModel\Tokens\WSSecurityJan2004.cs (4)
298throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.StandardsManagerCannotWriteObject, keyIdentifierClause.GetType()))); 373return ClauseType.IsAssignableFrom(clause.GetType()); 658if (typeof(SamlAssertionKeyIdentifierClause).IsAssignableFrom(clause.GetType())) 749return typeof(RelAssertionDirectKeyIdentifierClause).IsAssignableFrom(clause.GetType());
System\IdentityModel\Tokens\WSSecurityXXX2005.cs (2)
87throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.StandardsManagerCannotWriteObject, keyIdentifierClause.GetType()))); 238return typeof(SamlAssertionDirectKeyIdentifierClause).IsAssignableFrom(clause.GetType());
System\IdentityModel\Tokens\X509DataSecurityKeyIdentifierClauseSerializer.cs (1)
176throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("securityKeyIdentifierClause", SR.GetString(SR.ID4259, securityKeyIdentifierClause.GetType()));
System\IdentityModel\Tokens\X509SecurityToken.cs (1)
182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
System\IdentityModel\TypedAsyncResult.cs (1)
81throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( "result", SR.GetString( SR.ID2004, typeof( TypedAsyncResult<T>), result.GetType() ) );
System.Management (35)
Instrumentation\EventSource.cs (5)
566Type converterType = (Type)instrumentedAssembly.mapTypeToConverter[theObject.GetType()]; 583IntPtr[] objs = new IntPtr[] {(IntPtr)converter.GetType().GetField("instWbemObjectAccessIP").GetValue(converter)}; 787if(managedType != entry.Value.GetType()) 807objs[count] = (IntPtr)converter.GetType().GetField("instWbemObjectAccessIP").GetValue(converter); 829objs[count] = (IntPtr) funcs[count].Target.GetType().GetField("instWbemObjectAccessIP").GetValue(funcs[count].Target);
Instrumentation\Instrumentation.cs (10)
114GetFireFunction(eventData.GetType())(eventData); 143GetPublishFunction(instanceData.GetType())(instanceData); 157GetRevokeFunction(instanceData.GetType())(instanceData); 375 Fire(o.GetType(), o); 556 fieldInfo = convertFunctionsBatch[0].Target.GetType().GetField ("instWbemObjectAccessIP"); 562 fieldInfo = convertFunctionNoBatch.Target.GetType().GetField ("instWbemObjectAccessIP"); 572return (IntPtr)o.GetType().GetField("instWbemObjectAccessIP").GetValue(o); 767 fireFunction = Instrumentation.GetFireFunction(this.GetType()); 903publishFunction = Instrumentation.GetPublishFunction(this.GetType()); 914revokeFunction = Instrumentation.GetRevokeFunction(this.GetType());
Instrumentation\WMICapabilities.cs (1)
69if(result.GetType() == typeof(int) && (int)result==1)
managementnamedvaluecollection.cs (1)
142 Type valueType = val.GetType ();
managementobject.cs (4)
388if (GetType() == typeof(ManagementObject) && path.IsClass) 390else if (GetType() == typeof(ManagementClass) && path.IsInstance) 578if ((GetType() == typeof(ManagementObject) && newPath.IsInstance) || 579(GetType() == typeof(ManagementClass) && newPath.IsClass) ||
managementobjectsearcher.cs (2)
334if ((query.GetType() == typeof(SelectQuery)) && 428if ((query.GetType() == typeof(SelectQuery)) &&
methodset.cs (2)
358if (parent.GetType() == typeof(ManagementObject)) //can't remove methods from instance 420if (parent.GetType() == typeof(ManagementObject)) //can't add methods to instance
property.cs (4)
26else if(theValue.GetType().IsPrimitive) 163 if (parent.GetType() == typeof(ManagementObject)) 628 isArray = val.GetType().IsArray; 629 Type valueType = val.GetType();
propertyset.cs (5)
370 if (parent.GetType() == typeof(ManagementObject)) 409 if (parent.GetType() == typeof(ManagementObject)) //can't add properties to instance 448 if (parent.GetType() == typeof(ManagementObject)) //can't add properties to instance 454 if ((null != propertyValue) && propertyValue.GetType().IsArray) 490 if (parent.GetType() == typeof(ManagementObject)) //can't add properties to instance
qualifier.cs (1)
116 Type elementType = (length > 0 ? valArray.GetValue(0).GetType() : null);
System.Messaging (15)
System\Messaging\Cursor.cs (1)
36throw new ObjectDisposedException(GetType().Name);
System\Messaging\Design\MessageFormatterConverter.cs (1)
75return value.GetType().Name;
System\Messaging\Interop\MessagePropertyVariants.cs (1)
276if (obj.GetType() == typeof(IntPtr))
System\Messaging\MessageEnumerator.cs (1)
87throw new ObjectDisposedException(GetType().Name);
System\Messaging\MessageQueue.cs (6)
4318throw new ObjectDisposedException(GetType().Name); 4349throw new ObjectDisposedException(GetType().Name); 4384throw new ObjectDisposedException(GetType().Name); 4411throw new ObjectDisposedException(GetType().Name); 4572if (obj == null || GetType() != obj.GetType()) return false;
System\Messaging\MessageQueueEnumerator.cs (1)
139throw new ObjectDisposedException(GetType().Name);
System\Messaging\MessageQueuePermission.cs (1)
396Type type = this.GetType();
System\Messaging\MessageQueueTransaction.cs (1)
97throw new ObjectDisposedException(GetType().Name);
System\Messaging\SecurityContext.cs (1)
28throw new ObjectDisposedException(GetType().Name);
System\Messaging\XmlMessageFormatter.cs (1)
229Type serializedType = obj.GetType();
System.Net (136)
net\PeerToPeer\Collaboration\ContactManager.cs (21)
167if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 172if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 186if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 198if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 387if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 399if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 594if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 606if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 807if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 818if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1020if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1032if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1249if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1329if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1387if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1480if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1488if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1520if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1626if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1707if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1743if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName);
net\PeerToPeer\Collaboration\MyContact.cs (3)
554if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 562if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 586if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName);
net\PeerToPeer\Collaboration\Peer.cs (8)
230if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 240if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 273if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 278if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 355if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 772if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 778if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1078if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName);
net\PeerToPeer\Collaboration\PeerApplication.cs (20)
84if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 89if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 98if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 103if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 115if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 119if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 128if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 132if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 140if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 144if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 152if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 156if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 170if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 175if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 189if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 200if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 429if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 439if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 463if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 470if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName);
net\PeerToPeer\Collaboration\PeerCollaborationPermission.cs (3)
181if (className.IndexOf(this.GetType().FullName, StringComparison.Ordinal) < 0){ 195securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace('\"', '\''));
net\PeerToPeer\Collaboration\PeerContact.cs (36)
96if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 100if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 108if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 112if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 120if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 124if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 132if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 136if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 144if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 148if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 167if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 195if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 201if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 239if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 451if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 534if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 542if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 556if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 601if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 629if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 651if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 710if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 741if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 774if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 808if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 840if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 874if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1156if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1168if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1407if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1419if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1661if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1673if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1909if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1924if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 1952if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName);
net\PeerToPeer\Collaboration\PeerEndPoint.cs (7)
136if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 141if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 155if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 169if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 376if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 410if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 417if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName);
net\PeerToPeer\Collaboration\PeerNearMe.cs (15)
90if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 95if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 104if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 110if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 217if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 429if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 436if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 452if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 688if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 722if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 755if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 785if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 818if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 842if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 849if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName);
net\PeerToPeer\Collaboration\PeerObject.cs (14)
77if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 81if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 89if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 93if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 105if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 109if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 123if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 128if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 142if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 153if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 372if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 382if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 405if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 412if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName);
net\PeerToPeer\PeerNameRegistration.cs (5)
128throw new ObjectDisposedException(this.GetType().FullName); 230throw new ObjectDisposedException(this.GetType().FullName); 253if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 465if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName); 626if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName);
net\PeerToPeer\PeerNameResolver.cs (1)
201if (m_Disposed) throw new ObjectDisposedException(this.GetType().FullName);
net\PeerToPeer\PnrpPermission.cs (3)
168if (className.IndexOf(this.GetType().FullName, StringComparison.Ordinal) < 0) { 182securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace('\"', '\''));
System.Runtime.DurableInstancing (5)
System\Runtime\PersistencePipeline.cs (5)
94throw Fx.Exception.AsError(new InvalidOperationException(SRCore.NameCollisionOnCollect(value.Key, module.GetType().Name), exception)); 108throw Fx.Exception.AsError(new InvalidOperationException(SRCore.NameCollisionOnCollect(value.Key, module.GetType().Name), exception)); 149throw Fx.Exception.AsError(new InvalidOperationException(SRCore.NameCollisionOnMap(value.Key, writeOnlyValues.Item1.GetType().Name), exception)); 223throw Fx.Exception.AsError(new CallbackException(SRCore.PersistencePipelineAbortThrew(module.GetType().Name), exception)); 555throw Fx.Exception.AsError(new CallbackException(SRCore.PersistencePipelineAbortThrew(module.GetType().Name), exception));
System.Runtime.Remoting (5)
channels\sinks\binaryformattersinks.cs (2)
71CoreChannel.VerifyNoProviderData(this.GetType().Name, providerData); 346CoreChannel.VerifyNoProviderData(this.GetType().Name, providerData);
channels\sinks\soapformattersinks.cs (2)
72CoreChannel.VerifyNoProviderData(this.GetType().Name, providerData); 397CoreChannel.VerifyNoProviderData(this.GetType().Name, providerData);
metadata\sdlchannelsink.cs (1)
54this.GetType().Name, (String)entry.Key);
System.Runtime.Serialization (66)
System\Runtime\Serialization\CodeExporter.cs (1)
291throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.UnexpectedContractType, DataContract.GetClrTypeFullName(dataContract.GetType()), DataContract.GetClrTypeFullName(dataContract.UnderlyingType))));
System\Runtime\Serialization\CodeGenerator.cs (4)
289return var.GetType(); 883throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.CanOnlyStoreIntoArgOrLocGot0, DataContract.GetClrTypeFullName(var.GetType())))); 1044Type valueType = o.GetType(); 1053EmitSourceComment("Ldc " + o.GetType() + "." + o);
System\Runtime\Serialization\DataContract.cs (2)
218throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.UnexpectedContractType, DataContract.GetClrTypeFullName(this.GetType()), DataContract.GetClrTypeFullName(UnderlyingType)))); 223throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.UnexpectedContractType, DataContract.GetClrTypeFullName(this.GetType()), DataContract.GetClrTypeFullName(UnderlyingType))));
System\Runtime\Serialization\DataContractSerializer.cs (3)
366Type graphType = (graph == null) ? declaredType : graph.GetType(); 501return (graph == null) ? rootType : graph.GetType(); 517objType = obj.GetType();
System\Runtime\Serialization\ExtensionDataReader.cs (1)
638type = dataNode.Value.GetType();
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (2)
394return (graph == null) ? rootType : graph.GetType(); 457Type graphType = (graph == null) ? declaredType : graph.GetType();
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
241Type traditionalDataContractType = traditionalDataContract.GetType();
System\Runtime\Serialization\Json\XmlJsonWriter.cs (1)
1651else if (value.GetType().IsArray)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (3)
257SR.JsonOneRequiredMemberNotFound, DataContract.GetClrTypeFullName(obj.GetType()), stringBuilder.ToString()))); 262SR.JsonRequiredMembersNotFound, DataContract.GetClrTypeFullName(obj.GetType()), stringBuilder.ToString()))); 271SR.GetString(SR.JsonDuplicateMemberInInput, DataContract.GetClrTypeFullName(obj.GetType()), memberNames[memberIndex])));
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (5)
164Type objType = obj.GetType(); 248DataContract dc = GetDataContract(dataNode.Value.GetType()); 289Type contractType = contract.GetType(); 292throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.XmlObjectAssignedToIncompatibleInterface, graph.GetType(), declaredType))); 297throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.CollectionAssignedToIncompatibleInterface, graph.GetType(), declaredType)));
System\Runtime\Serialization\NetDataContractSerializer.cs (2)
256Type graphType = graph.GetType(); 441return GetDataContract(((obj == null) ? Globals.TypeOfObject : obj.GetType()), ref surrogateDataContracts);
System\Runtime\Serialization\PrimitiveDataContract.cs (2)
152Type thisType = this.GetType(); 153Type otherType = other.GetType();
System\Runtime\Serialization\XmlObjectSerializer.cs (1)
430return (graph == null) ? null : graph.GetType();
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (3)
400throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.FactoryObjectContainsSelfReference, DataContract.GetClrTypeFullName(oldObj.GetType()), DataContract.GetClrTypeFullName(newObj.GetType()), id))); 439throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.GetRealObjectReturnedNull, DataContract.GetClrTypeFullName(obj.GetType()))));
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (9)
380throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.CannotSerializeObjectWithCycles, DataContract.GetClrTypeFullName(obj.GetType())))); 485throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.UnknownXmlType, DataContract.GetClrTypeFullName(obj.GetType())))); 504Type objType = obj.GetType(); 511throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ISerializableAssemblyNameSetToZero, DataContract.GetClrTypeFullName(obj.GetType())))); 619InternalSerialize(xmlWriter, o, false /*isDeclaredType*/, false /*writeXsiType*/, -1, o.GetType().TypeHandle); 634Type declaredType = (dataNode.DataContractName == null) ? o.GetType() : Globals.TypeOfObject; 744throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ResolveTypeReturnedFalse, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType)))); 754throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType)))); 759throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType))));
System\Runtime\Serialization\XmlSerializableWriter.cs (3)
25throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.IXmlSerializableMissingEndElements, (obj == null ? string.Empty : DataContract.GetClrTypeFullName(obj.GetType()))))); 54throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.IXmlSerializableWritePastSubTree, (obj == null ? string.Empty : DataContract.GetClrTypeFullName(obj.GetType()))))); 62throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.IXmlSerializableWritePastSubTree, (obj == null ? string.Empty : DataContract.GetClrTypeFullName(obj.GetType())))));
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
286WriteAnyType(value, value.GetType());
System\Xml\XmlBaseWriter.cs (1)
1099else if (value.GetType().IsArray)
System\Xml\XmlC14NWriter.cs (1)
689throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
System\Xml\XmlMtomReader.cs (20)
2106get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SeekNotSupportedOnStream, this.GetType().FullName))); } 2114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SeekNotSupportedOnStream, this.GetType().FullName))); 2116set { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SeekNotSupportedOnStream, this.GetType().FullName))); } 2121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.WriteNotSupportedOnStream, this.GetType().FullName))); 2131throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.WriteNotSupportedOnStream, this.GetType().FullName))); 2136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.WriteNotSupportedOnStream, this.GetType().FullName))); 2158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SeekNotSupportedOnStream, this.GetType().FullName))); 2163throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.WriteNotSupportedOnStream, this.GetType().FullName))); 2168throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.WriteNotSupportedOnStream, this.GetType().FullName))); 2835throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SeekNotSupportedOnStream, stream.GetType().FullName))); 2844throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SeekNotSupportedOnStream, stream.GetType().FullName))); 2848throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SeekNotSupportedOnStream, stream.GetType().FullName))); 2855throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ReadNotSupportedOnStream, stream.GetType().FullName))); 2862throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.WriteNotSupportedOnStream, stream.GetType().FullName))); 2873throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ReadNotSupportedOnStream, stream.GetType().FullName))); 2880throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.WriteNotSupportedOnStream, stream.GetType().FullName))); 2891throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ReadNotSupportedOnStream, stream.GetType().FullName))); 2976throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SeekNotSupportedOnStream, stream.GetType().FullName))); 2981throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SeekNotSupportedOnStream, stream.GetType().FullName))); 2986throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.WriteNotSupportedOnStream, stream.GetType().FullName)));
System.Security (33)
system\security\cryptography\pkcs\pkcsmisc.cs (10)
160if (value.GetType() != typeof(X509IssuerSerial)) { 161throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString()); 168if (value.GetType() != typeof(string)) { 169throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString()); 271if (value.GetType() != typeof(X509IssuerSerial)) { 272throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString()); 279if (value.GetType() != typeof(string)) { 280throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString()); 287if (value.GetType() != typeof(PublicKeyInfo)) { 288throw new CryptographicException(SecurityResources.GetResourceString("Cryptography_Cms_Invalid_Subject_Identifier_Type_Value_Mismatch"), value.GetType().ToString());
system\security\cryptography\xml\keyinfo.cs (1)
138if (requestedObjectType.Equals(tempObj.GetType()))
system\security\cryptography\xml\signedxml.cs (1)
1059Type actualType = key.GetType();
system\security\cryptography\xml\SignedXmlDebugLog.cs (14)
245return String.Format(CultureInfo.InvariantCulture, "{0}#{1}", key.GetType().Name, keyName); 255"{0}#{1}", o.GetType().Name, 285canonicalizationTransform.GetType().Name); 603signatureDescription.GetType().Name, 604hash.GetType().Name, 605asymmetricSignatureFormatter.GetType().Name); 628key.GetType().Name); 648string hashAlgorithmName = hashAlgorithm == null ? "null" : hashAlgorithm.GetType().Name; 773string hashAlgorithmName = hashAlgorithm == null ? "null" : hashAlgorithm.GetType().Name; 816signatureDescription.GetType().Name, 817hashAlgorithm.GetType().Name, 818asymmetricSignatureDeformatter.GetType().Name); 856mac.GetType().Name); 971string hashAlgorithmName = hashAlgorithm == null ? "null" : hashAlgorithm.GetType().Name;
system\security\cryptography\xml\transform.cs (1)
75if (currentInput == null || transform.AcceptsType(currentInput.GetType())) {
system\security\permissions\dataprotectionpermission.cs (6)
68throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Argument_WrongType"), this.GetType().FullName)); 83throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Argument_WrongType"), this.GetType().FullName)); 100throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SecurityResources.GetResourceString("Argument_WrongType"), this.GetType().FullName)); 116securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace('\"', '\'')); 130if (className == null || className.IndexOf(this.GetType().FullName, StringComparison.Ordinal) == -1)
System.ServiceModel (473)
System\ServiceModel\Activation\Configuration\SecurityIdentifierConverter.cs (1)
37Fx.Assert(this.CanConvertFrom(context, value.GetType()), "");
System\ServiceModel\Activation\Iis7Helper.cs (1)
39if (majorVersion != null && majorVersion.GetType().Equals(typeof(int)))
System\ServiceModel\Activation\SystemWebHelper.cs (3)
129PropertyInfo itemPropertyInfo = roleProviderCollection.GetType().GetProperty("Item", new Type[] { typeof(string) }); 191PropertyInfo itemPropertyInfo = membershipProviderCollection.GetType().GetProperty("Item", new Type[] { typeof(string) }); 217|| configHostingContext.GetType() != webContextType)
System\ServiceModel\Administration\AppDomainInstanceProvider.cs (1)
89Type type = traceListener.GetType();
System\ServiceModel\Administration\ContractInstanceProvider.cs (2)
165instance.SetProperty(AdministrationStrings.Type, behavior.GetType().FullName); 224instance.SetProperty(AdministrationStrings.Type, behavior.GetType().FullName);
System\ServiceModel\Administration\EndpointInstanceProvider.cs (3)
145Type elementType = AdministrationHelpers.GetServiceModelBaseType(bindingElement.GetType()); 536instance.SetProperty(AdministrationStrings.Type, behavior.GetType().FullName); 571extendedProtectionPolicy.SetProperty(AdministrationStrings.CustomChannelBinding, policy.CustomChannelBinding.GetType().ToString());
System\ServiceModel\Administration\ServiceInstanceProvider.cs (2)
341instance.SetProperty(AdministrationStrings.Type, behavior.GetType().FullName); 360instance.SetProperty(AdministrationStrings.Type, channel.GetType().ToString());
System\ServiceModel\Administration\WbemProvider.cs (1)
986val.GetType().ToString());
System\ServiceModel\BasicHttpMessageSecurity.cs (2)
142return this.algorithmSuite.GetType() != SecurityAlgorithmSuite.Default.GetType();
System\ServiceModel\ChannelFactory.cs (1)
854Type implementationType = implementation.GetType();
System\ServiceModel\Channels\AddressHeader.cs (2)
66return (value == null) ? typeof(object) : value.GetType(); 253Type type = (objectToSerialize == null) ? typeof(object) : objectToSerialize.GetType();
System\ServiceModel\Channels\BinaryMessageEncoder.cs (5)
163TD.WritePoolMiss(xmlWriter.GetType().Name); 199TD.WritePoolMiss(messageWriter.GetType().Name); 234TD.ReadPoolMiss(xmlReader.GetType().Name); 273TD.ReadPoolMiss(messageData.GetType().Name); 338TD.ReadPoolMiss(xmlReader.GetType().Name);
System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (2)
93string errorMsg = SR.GetString(SR.UnsupportedEnvelopeVersion, this.GetType().FullName, BinaryEncoderDefaults.EnvelopeVersion, value.Envelope); 180this.GetType().Name,
System\ServiceModel\Channels\Binding.cs (4)
74this.name = this.GetType().Name; 319SR.GetString(SR.TransportBindingElementMustBeLast, this.Name, transport.GetType().Name))); 324SR.GetString(SR.InvalidBindingScheme, transport.GetType().Name))); 345return (this.Name != this.GetType().Name);
System\ServiceModel\Channels\BindingContext.cs (1)
169string typeString = bindingElement.GetType().ToString();
System\ServiceModel\Channels\ChannelBindingMessageProperty.cs (1)
133throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
System\ServiceModel\Channels\ChannelBindingUtility.cs (1)
217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(source.GetType().FullName));
System\ServiceModel\Channels\ChannelDemuxer.cs (1)
3679if (!context.BindingParameters.Contains(this.cachedContextState.CachedBindingParameters[i].GetType()))
System\ServiceModel\Channels\ChannelFactoryBase.cs (1)
149throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ChannelFactoryCannotBeUsedToCreateChannels, this.GetType().ToString())));
System\ServiceModel\Channels\ChannelParameterCollection.cs (4)
90channel.GetType().ToString(), state.ToString()); 95channel.GetType().ToString(), state.ToString()); 118channel.GetType().ToString(), state.ToString()); 130channel.GetType().ToString(), state.ToString());
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (9)
468TD.WebSocketUseVersionFromClientWebSocketFactory(this.EventTraceActivity, this.connectionFactory.GetType().FullName); 484throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.ClientWebSocketFactory_GetWebSocketVersionFailed, this.connectionFactory.GetType().Name), e)); 490throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.ClientWebSocketFactory_InvalidWebSocketVersion, this.connectionFactory.GetType().Name))); 499throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.ClientWebSocketFactory_InvalidWebSocketVersion, this.connectionFactory.GetType().Name), e)); 509TD.WebSocketCreateClientWebSocketWithFactory(this.EventTraceActivity, this.connectionFactory.GetType().FullName); 525throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.ClientWebSocketFactory_CreateWebSocketFailed, this.connectionFactory.GetType().Name), e)); 531throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.ClientWebSocketFactory_InvalidWebSocket, this.connectionFactory.GetType().Name))); 536throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.ClientWebSocketFactory_InvalidWebSocket, this.connectionFactory.GetType().Name))); 545throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.ClientWebSocketFactory_InvalidSubProtocol, this.connectionFactory.GetType().Name, obtained, requested)));
System\ServiceModel\Channels\CommunicationObject.cs (3)
402get { return SR.GetString(SR.ActivityClose, this.GetType().FullName); } 407get { return SR.GetString(SR.ActivityOpen, this.GetType().FullName); } 848return this.GetType();
System\ServiceModel\Channels\CommunicationObjectManager.cs (1)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
System\ServiceModel\Channels\ContextBindingElement.cs (1)
320callingBehavior.GetType().Name, endpoint.Name, endpoint.ListenUri.ToString())));
System\ServiceModel\Channels\FaultConverter.cs (4)
37string text = SR.GetString(SR.FaultConverterDidNotCreateException, this.GetType().Name); 46string text = SR.GetString(SR.FaultConverterCreatedException, this.GetType().Name); 63string text = SR.GetString(SR.FaultConverterDidNotCreateFaultMessage, this.GetType().Name); 72string text = SR.GetString(SR.FaultConverterCreatedFaultMessage, this.GetType().Name);
System\ServiceModel\Channels\HttpChannelListener.cs (1)
1133httpMessageHandlerFactory.GetType().Name, typeof(HttpRequestContext).Name)));
System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (1)
203Type thisType = this.GetType();
System\ServiceModel\Channels\InitialServerConnectionReader.cs (2)
329new StringTraceRecord("Type", upgradeAcceptor.GetType().ToString()), connection, null); 389new StringTraceRecord("Type", upgradeAcceptor.GetType().ToString()), this, null);
System\ServiceModel\Channels\LayeredChannelListener.cs (2)
172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InnerListenerFactoryNotSet, this.GetType().ToString()))); 182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InnerListenerFactoryNotSet, this.GetType().ToString())));
System\ServiceModel\Channels\LifetimeManager.cs (4)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 252throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 377this.Complete(false, new ObjectDisposedException(this.GetType().ToString()));
System\ServiceModel\Channels\Message.cs (1)
152return (value == null) ? typeof(object) : value.GetType();
System\ServiceModel\Channels\MessageEncodingBindingElementImporter.cs (1)
40Type elementType = messageEncodingBindingElement.GetType();
System\ServiceModel\Channels\MessageFault.cs (1)
35(detail == null ? typeof(object) : detail.GetType()), int.MaxValue/*maxItems*/), "", "");
System\ServiceModel\Channels\MessageHeader.cs (2)
431(objectToSerialize == null ? typeof(object) : objectToSerialize.GetType()), this.Name, this.Namespace, int.MaxValue/*maxItems*/); 446throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.MessageHeaderVersionNotSupported, this.GetType().FullName, messageVersion.ToString()), "version"));
System\ServiceModel\Channels\MessageHeaders.cs (1)
1220header.GetType().FullName, this.version.Envelope.ToString()), "header"));
System\ServiceModel\Channels\MessageProperties.cs (1)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(string.Empty, SR.GetString(SR.ObjectDisposed, this.GetType().ToString())));
System\ServiceModel\Channels\Msmq4PoisonHandler.cs (2)
134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 187throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
System\ServiceModel\Channels\MsmqBindingMonitor.cs (2)
80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CommunicationObjectCannotBeModified, this.GetType().ToString()))); 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CommunicationObjectCannotBeModified, this.GetType().ToString())));
System\ServiceModel\Channels\MtomMessageEncoder.cs (7)
444TD.WritePoolMiss(xmlWriter.GetType().Name); 479TD.WritePoolMiss(messageWriter.GetType().Name); 508TD.ReadPoolMiss(messageData.GetType().Name); 545TD.ReadPoolMiss(xmlReader.GetType().Name); 560TD.ReadPoolMiss(xmlReader.GetType().Name); 655TD.ReadPoolMiss(xmlReader.GetType().Name); 670TD.ReadPoolMiss(xmlReader.GetType().Name);
System\ServiceModel\Channels\PeerNeighborManager.cs (1)
1447throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
System\ServiceModel\Channels\PeerNodeImplementation.cs (4)
1296throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ListenUriNotSet, this.GetType()))); 1653return this.GetType().ToString(); 1765else if (resolver.GetType() != peerNode.Resolver.GetType())
System\ServiceModel\Channels\PeerSecurityManager.cs (1)
492Fx.Assert(typeof(PeerSecurityCredentialsManager.PeerClientSecurityTokenManager).IsAssignableFrom(tokenManager.GetType()), "");
System\ServiceModel\Channels\PeerTransportBindingElement.cs (2)
118if (value.GetType() == PeerTransportDefaults.ResolverType) 344else if (resolverBindingElements[0].GetType() == PeerTransportDefaults.ResolverBindingElementType)
System\ServiceModel\Channels\PnrpPeerResolver.cs (3)
1383if (input.GetType() == typeof(PnrpInfo)) 1400else if (input.GetType() == typeof(PnrpCloudInfo)) 1402int blobSize = Marshal.SizeOf(input.GetType());
System\ServiceModel\Channels\ReceiveContext.cs (13)
111TD.ReceiveContextAbandonWithException(this.eventTraceActivity, this.GetType().ToString(), exception.GetType().ToString()); 129TD.ReceiveContextAbandonFailed(this.eventTraceActivity, this.GetType().ToString()); 195TD.ReceiveContextCompleteFailed(this.eventTraceActivity, this.GetType().ToString()); 359new CommunicationException(SR.GetString(SR.ReceiveContextFaulted, this.GetType().ToString()))); 368new InvalidOperationException(SR.GetString(SR.ReceiveContextInInvalidState, this.GetType().ToString(), this.State.ToString()))); 377new InvalidOperationException(SR.GetString(SR.ReceiveContextInInvalidState, this.GetType().ToString(), this.State.ToString()))); 386new InvalidOperationException(SR.GetString(SR.ReceiveContextCannotBeUsed, this.GetType().ToString(), this.State.ToString()))); 409return new InvalidOperationException(SR.GetString(SR.ReceiveContextInInvalidState, this.GetType().ToString(), this.State.ToString()), exception); 452TD.ReceiveContextAbandonWithException(this.ReceiveContext.eventTraceActivity, this.GetType().ToString(), exception.GetType().ToString()); 467this.GetType().ToString()); 510TD.ReceiveContextAbandonFailed(thisPtr.ReceiveContext.eventTraceActivity, thisPtr.GetType().ToString()); 568TD.ReceiveContextCompleteFailed(this.ReceiveContext.eventTraceActivity, this.GetType().ToString()); 612TD.ReceiveContextCompleteFailed(thisPtr.ReceiveContext.eventTraceActivity, thisPtr.GetType().ToString());
System\ServiceModel\Channels\ReliableChannelBinder.cs (4)
575SR.CommunicationObjectAborted1, this.GetType().ToString())); 579return new ObjectDisposedException(this.GetType().ToString()); 611SR.CommunicationObjectFaulted1, this.GetType().ToString())); 766this.GetType().ToString(), this.state.ToString()));
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (1)
598transportTransferMode, this.GetType().Name)));
System\ServiceModel\Channels\RequestContextBase.cs (1)
205throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
System\ServiceModel\Channels\SecurityBindingElement.cs (2)
1833sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString())); 2255throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.NoTransportTokenAssertionProvided, transportTokenAssertionProvider.GetType().ToString())));
System\ServiceModel\Channels\ServiceChannel.cs (4)
1187string text = SR.GetString(SR.SFxInitializationUINotCalled, example.GetType().ToString()); 1206string text = SR.GetString(SR.SFxInitializationUIDisallowed, example.GetType().ToString()); 1572AspNetEnvironment.Current.TraceIncrementBusyCount(this.GetType().FullName); 1588AspNetEnvironment.Current.TraceDecrementBusyCount(this.GetType().FullName);
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
311activityName = SR.GetString(SR.ActivityClose, this.serviceChannel.GetType().FullName);
System\ServiceModel\Channels\SocketConnection.cs (3)
592this.GetType().ToString(), SR.GetString(SR.SocketConnectionDisposed)), TransferOperation.Undefined), ExceptionEventType); 602this.GetType().ToString(), SR.GetString(SR.SocketConnectionDisposed)), TransferOperation.Undefined), ExceptionEventType); 2035throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString(), SR.GetString(SR.SocketListenerDisposed)));
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (5)
195throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("upgradeInitiator", SR.GetString(SR.UnsupportedUpgradeInitiator, upgradeInitiator.GetType())); 200throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("kind", SR.GetString(SR.StreamUpgradeUnsupportedChannelBindingKind, this.GetType(), kind)); 217throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("upgradeAcceptor", SR.GetString(SR.UnsupportedUpgradeAcceptor, upgradeAcceptor.GetType())); 222throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("kind", SR.GetString(SR.StreamUpgradeUnsupportedChannelBindingKind, this.GetType(), kind)); 290SR.InvalidTokenProvided, this.serverTokenProvider.GetType(), typeof(X509SecurityToken))));
System\ServiceModel\Channels\TextMessageEncoder.cs (5)
655TD.WritePoolMiss(xmlWriter.GetType().Name); 690TD.WritePoolMiss(messageWriter.GetType().Name); 719TD.ReadPoolMiss(xmlReader.GetType().Name); 757TD.ReadPoolMiss(messageData.GetType().Name); 845TD.ReadPoolMiss(xmlReader.GetType().Name);
System\ServiceModel\Channels\TransactionChannelListener.cs (5)
197throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName)); 207throw TraceUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName), message); 222throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName)); 232throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName)); 242throw TraceUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName), message);
System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
467SR.InvalidTokenProvided, tokenProvider.GetType(), typeof(T))));
System\ServiceModel\ClientBase.cs (2)
783if (typeof(CompletedAsyncResult).IsAssignableFrom(result.GetType())) 807if (typeof(CompletedAsyncResult).IsAssignableFrom(result.GetType()))
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceRecords.cs (2)
340(contractType != null) ? contractType.ToString() : null, (binding != null) ? (binding.GetType()).ToString() : null, schema); 384(binding != null) ? (binding.GetType()).ToString() : null);
System\ServiceModel\ComIntegration\ComPlusTraceRecord.cs (1)
17DataContractSerializer serializer = DataContractSerializerDefaults.CreateSerializer(((o == null) ? typeof(object) : o.GetType()), DataContractSerializerDefaults.MaxItemsInObjectGraph);
System\ServiceModel\ComIntegration\DispatchProxy.cs (17)
322if (!result.GetType().IsArray) 373if (ret.GetType() == typeof(Int16)) 375else if (ret.GetType() != typeof(Int32)) 376throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.UnsupportedConversion, ret.GetType(), type.GetElementType()), HR.DISP_E_TYPEMISMATCH)); 380if (ret.GetType() == typeof(Int16)) 382else if (ret.GetType() == typeof(Int32)) 384else if (ret.GetType() != typeof(Int64)) 385throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.UnsupportedConversion, ret.GetType(), type), HR.DISP_E_TYPEMISMATCH)); 448throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.UnsupportedConversion, objects[0].GetType(), type.GetElementType()), HR.DISP_E_TYPEMISMATCH)); 457if (objects[i].GetType() == typeof(Int16)) 459else if (objects[i].GetType() == typeof(Int32)) 462throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.UnsupportedConversion, objects[i].GetType(), type.GetElementType()), HR.DISP_E_TYPEMISMATCH)); 469if (objects[i].GetType() == typeof(Int16)) 471else if (objects[i].GetType() == typeof(Int32)) 473else if (objects[i].GetType() == typeof(Int64)) 476throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.UnsupportedConversion, objects[i].GetType(), type.GetElementType()), HR.DISP_E_TYPEMISMATCH)); 511if (!val.GetType().IsArray)
System\ServiceModel\ComIntegration\MexServiceChannelBuilder.cs (2)
458if (wsdlImportExtensions[i].GetType() == typeof(XmlSerializerMessageContractImporter)) 473if (wsdlImportExtensions[i].GetType() == typeof(DataContractSerializerMessageContractImporter))
System\ServiceModel\ComIntegration\WsdlServiceChannelBuilder.cs (2)
316if (wsdlImportExtensions[i].GetType() == typeof(XmlSerializerMessageContractImporter)) 331if (wsdlImportExtensions[i].GetType() == typeof(DataContractSerializerMessageContractImporter))
System\ServiceModel\Configuration\BindingCollectionElement.cs (1)
52Type extensionSectionType = this.GetType();
System\ServiceModel\Configuration\BindingElementExtensionElement.cs (2)
38if (bindingElement.GetType() != this.BindingElementType) 43bindingElement.GetType().ToString()));
System\ServiceModel\Configuration\BindingsSection.cs (1)
228MethodInfo tryAddMethod = bindingCollectionElement.GetType().GetMethod("TryAdd", BindingFlags.Instance | BindingFlags.NonPublic);
System\ServiceModel\Configuration\ConfigurationHelpers.cs (1)
297PropertyInfo elementPresent = element.GetType().GetProperty("ElementPresent", BindingFlags.Instance | BindingFlags.NonPublic);
System\ServiceModel\Configuration\CustomBindingCollectionElement.cs (2)
75isMatch = bindingElementExtension.BindingElementType.IsAssignableFrom(bindingElement.GetType()); 79isMatch = bindingElementExtension.BindingElementType.Equals(bindingElement.GetType());
System\ServiceModel\Configuration\CustomBindingElement.cs (6)
90existingElement.GetType().AssemblyQualifiedName))); 96existingElement.GetType().AssemblyQualifiedName))); 102existingElement.GetType().AssemblyQualifiedName))); 116if (binding.GetType() != typeof(CustomBinding)) 120binding.GetType().AssemblyQualifiedName)); 139return !this.ContainsKey(element.GetType()) && this.CanAddEncodingElement(element, ref existingElement) &&
System\ServiceModel\Configuration\EndpointCollectionElement.cs (1)
54Type extensionSectionType = this.GetType();
System\ServiceModel\Configuration\PeerCustomResolverElement.cs (1)
105SetPropertyValueIfNotDefaultValue(ConfigurationStrings.PeerResolverType, settings.Resolver.GetType().AssemblyQualifiedName);
System\ServiceModel\Configuration\SecurityElementBase.cs (4)
386if (p1.GetType() != p2.GetType()) 450if (b1.GetType() != b2.GetType())
System\ServiceModel\Configuration\ServiceModelExtensionCollectionElement.cs (9)
65if (collectionElement.GetType() == extensionType) 137ConfigurationProperty configProperty = new ConfigurationProperty(element.ConfigurationElementName, element.GetType(), null); 165Type elementType = element.GetType(); 240return this.ContainsKey(element.GetType()); 314this.GetType().Name), 421Type childExtensionElementType = childExtensionElement.GetType(); 422parentExtensionElements.RemoveAll(element => element != null && element.GetType() == childExtensionElementType); 537TServiceModelExtensionElement existingElement = (TServiceModelExtensionElement)this[element.GetType()]; 625ConfigurationProperty configProperty = new ConfigurationProperty(configuredSectionName, extension.GetType(), null);
System\ServiceModel\Configuration\ServiceModelExtensionElement.cs (1)
137thisType = this.GetType();
System\ServiceModel\Configuration\SessionIdTypeConverter.cs (1)
24throw FxTrace.Exception.Argument("value", InternalSR.IncompatibleArgumentType(typeof(int), value.GetType()));
System\ServiceModel\Configuration\StandardBindingCollectionElement.cs (1)
59bool retval = (binding.GetType() == typeof(TStandardBinding)) &&
System\ServiceModel\Configuration\StandardBindingElement.cs (4)
95if (binding.GetType() != this.BindingElementType) 99binding.GetType().AssemblyQualifiedName)); 122if (binding.GetType() != this.BindingElementType) 126binding.GetType().AssemblyQualifiedName));
System\ServiceModel\Configuration\StandardEndpointCollectionElement.cs (1)
59bool retval = (endpoint.GetType() == typeof(TStandardEndpoint)) &&
System\ServiceModel\Configuration\StandardEndpointElement.cs (6)
89if (endpoint.GetType() != this.EndpointType) 93endpoint.GetType().AssemblyQualifiedName)); 118if (endpoint.GetType() != this.EndpointType) 122endpoint.GetType().AssemblyQualifiedName)); 141if (endpoint.GetType() != this.EndpointType) 145endpoint.GetType().AssemblyQualifiedName));
System\ServiceModel\Configuration\StandardEndpointsSection.cs (1)
140MethodInfo tryAddMethod = endpointCollectionElement.GetType().GetMethod("TryAdd", BindingFlags.Instance | BindingFlags.NonPublic);
System\ServiceModel\Configuration\TimeSpanOrInfiniteConverter.cs (1)
24throw FxTrace.Exception.Argument("value", InternalSR.IncompatibleArgumentType(typeof(TimeSpan), value.GetType()));
System\ServiceModel\Configuration\TimeSpanOrInfiniteValidator.cs (1)
19if (value.GetType() == typeof(TimeSpan) && (TimeSpan)value == TimeSpan.MaxValue)
System\ServiceModel\Configuration\XPathMessageFilterElementCollection.cs (7)
28if (key.GetType().IsAssignableFrom(typeof(XPathMessageFilter))) 32else if (key.GetType().IsAssignableFrom(typeof(string))) 42key.GetType().AssemblyQualifiedName))); 80if (!key.GetType().IsAssignableFrom(typeof(XPathMessageFilter))) 86key.GetType().AssemblyQualifiedName))); 115if (!key.GetType().IsAssignableFrom(typeof(XPathMessageFilter))) 121key.GetType().AssemblyQualifiedName)));
System\ServiceModel\Configuration\XPathMessageFilterElementComparer.cs (4)
81if (obj.GetType().IsAssignableFrom(typeof(XPathMessageFilter))) 85else if (obj.GetType().IsAssignableFrom(typeof(XPathMessageFilterElement))) 89else if (obj.GetType().IsAssignableFrom(typeof(string))) 97SR.GetString(SR.ConfigCannotParseXPathFilter, obj.GetType().AssemblyQualifiedName)));
System\ServiceModel\Description\ClientCredentials.cs (3)
258if (result == null || result.GetType() != this.GetType()) 260throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.CloneNotImplementedCorrectly, this.GetType(), (result != null) ? result.ToString() : "null")));
System\ServiceModel\Description\ConfigLoader.cs (3)
216Type type = behaviorObject.GetType(); 737throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ConfigNoEndpointCreated, standardEndpointElement.GetType().AssemblyQualifiedName, 913throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ConfigNoEndpointCreated, standardEndpointElement.GetType().AssemblyQualifiedName,
System\ServiceModel\Description\ContractDescription.cs (1)
183Type serviceType = serviceImplementation.GetType();
System\ServiceModel\Description\MetadataExporter.cs (1)
147string errorMessage = SR.GetString(SR.PolicyExtensionExportError, exporter.GetType(), e.Message);
System\ServiceModel\Description\MetadataImporter.cs (1)
134string errorMessage = SR.GetString(SR.PolicyExtensionImportError, importer.GetType(), e.Message);
System\ServiceModel\Description\MetadataSet.cs (3)
265System.Type t = o.GetType(); 320System.Type t = o.GetType(); 402System.Type t = o.GetType();
System\ServiceModel\Description\OperationGenerator.cs (2)
991Type attributeType = attribute.GetType(); 1031Type type = val.GetType();
System\ServiceModel\Description\ServiceCredentials.cs (3)
203if (result == null || result.GetType() != this.GetType()) 205throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.CloneNotImplementedCorrectly, this.GetType(), (result != null) ? result.ToString() : "null")));
System\ServiceModel\Description\ServiceDebugBehavior.cs (2)
86value.Scheme, value.GetType().ToString(), Uri.UriSchemeHttp)); 115value.Scheme, value.GetType().ToString(), Uri.UriSchemeHttps));
System\ServiceModel\Description\ServiceDescription.cs (1)
250Type serviceType = serviceImplementation.GetType();
System\ServiceModel\Description\ServiceMetadataBehavior.cs (2)
91value.Scheme, value.GetType().ToString(), Uri.UriSchemeHttp)); 120value.Scheme, value.GetType().ToString(), Uri.UriSchemeHttps));
System\ServiceModel\Description\ServiceReflector.cs (1)
359return provider.GetType();
System\ServiceModel\Description\TypeLoader.cs (5)
495opBehaviorAttr.GetType().FullName))); 505opBehaviorAttr.GetType().FullName))); 516opBehaviorAttr.GetType().FullName))); 573Type t = behavior.GetType(); 1980if (!descriptionBehaviors.Contains(behavior.GetType()))
System\ServiceModel\Description\WsdlExporter.cs (2)
1205string errorMessage = SR.GetString(SR.WsdlExtensionContractExportError, exporter.GetType(), contractIdentifier); 1223string errorMessage = SR.GetString(SR.WsdlExtensionEndpointExportError, exporter.GetType(), endpointIdentifier);
System\ServiceModel\Description\WsdlImporter.cs (9)
639SR.GetString(SR.SFxBadMetadataDialect, doc.Identifier, doc.Dialect, typeof(T).FullName, doc.GetType().FullName))); 820= (WsdlConfigNS.XmlFormatExtensionAttribute[])ServiceReflector.GetCustomAttributes(extension.GetType(), 828WsdlImportException wie = WsdlImportException.Create(item, new InvalidOperationException(SR.GetString(SR.UnknownWSDLExtensionIgnored, extension.GetType().AssemblyQualifiedName))); 1765Fx.Assert("GetElementName Method should be updated to support " + item.GetType()); 1787Fx.Assert(rest != null, "GetXPathParameters Method should never set rest to null. this happened for: " + item.GetType()); 1863Fx.Assert("Unsupported WSDL OM: unknown WsdlNS.MessageBinding: " + item.GetType()); 1873Fx.Assert("GetXPathParameters Method should be updated to support " + item.GetType()); 1909string errorMessage = SR.GetString(SR.WsdlExtensionBeforeImportError, importer.GetType().AssemblyQualifiedName, e.Message); 1922string errorMessage = SR.GetString(SR.WsdlExtensionImportError, importer.GetType().FullName, e.Message);
System\ServiceModel\Diagnostics\MessageLogTraceRecord.cs (1)
112this.type = message.GetType();
System\ServiceModel\Diagnostics\MessageTraceRecord.cs (1)
63xml.WriteAttributeString("ClrType", base.XmlEncode(claimSet.GetType().AssemblyQualifiedName));
System\ServiceModel\Diagnostics\PerformanceCounters.cs (2)
678MethodInfo method = o.GetType().GetMethod(methodName, BindingFlags.NonPublic | BindingFlags.Instance); 679Fx.Assert(null != method, o.GetType().ToString() + " must have method " + methodName);
System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (5)
546writer.WriteElementString("TokenType", token.GetType().ToString()); 555xml.WriteElementString("SessionTokenType", sessiontoken.GetType().ToString()); 611xml.WriteElementString("ResourceType", claim.Resource.GetType().ToString()); 617xml.WriteString(claim.GetType().AssemblyQualifiedName); 1133xml.WriteElementString("ResourceType", claim.Resource.GetType().ToString());
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
861return source.GetType().ToString() + "/" + source.GetHashCode().ToString(CultureInfo.CurrentCulture);
System\ServiceModel\Dispatcher\AuthenticationBehavior.cs (2)
54DS.Authentication(this.serviceAuthenticationManager.GetType(), true, sw.Elapsed); 66DS.Authentication(this.serviceAuthenticationManager.GetType(), false, sw.Elapsed);
System\ServiceModel\Dispatcher\AuthorizationBehavior.cs (4)
58DS.Authorization(this.serviceAuthorizationManager.GetType(), true, sw.Elapsed); 70DS.Authorization(this.serviceAuthorizationManager.GetType(), false, sw.Elapsed); 99serviceAuthorizationManager == DefaultServiceAuthorizationManager ? "<default>" : serviceAuthorizationManager.GetType().Name, 133serviceAuthorizationManager == DefaultServiceAuthorizationManager ? "<default>" : serviceAuthorizationManager.GetType().Name);
System\ServiceModel\Dispatcher\ChannelDispatcherCollection.cs (2)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.service.GetType().ToString())); 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.service.GetType().ToString()));
System\ServiceModel\Dispatcher\CodeGenerator.cs (4)
207return var.GetType(); 347throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxCodeGenCanOnlyStoreIntoArgOrLocGot0, var.GetType().FullName))); 424Type valueType = o.GetType(); 433EmitSourceComment("Ldc " + o.GetType() + "." + o);
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (8)
287DS.DispatchMessageFormatterDeserialize(this.Formatter.GetType(), sw.Elapsed); 419DS.ParameterInspectorBefore(inspector.GetType(), sw.Elapsed); 424TD.ParameterInspectorBeforeCallInvoked(rpc.EventTraceActivity, inspector.GetType().FullName); 458DS.ParameterInspectorAfter(inspector.GetType(), sw.Elapsed); 463TD.ParameterInspectorAfterCallInvoked(rpc.EventTraceActivity, inspector.GetType().FullName); 506DS.InvokeOperationStart(this.Invoker.GetType(), Stopwatch.GetTimestamp()); 771DS.DispatchMessageFormatterSerialize(this.Formatter.GetType(), sw.Elapsed); 794string message = SR.GetString(SR.SFxNullReplyFromFormatter2, this.Formatter.GetType().ToString(), (this.name ?? ""));
System\ServiceModel\Dispatcher\ErrorBehavior.cs (2)
134TD.FaultProviderInvoked(handlers[i].GetType().FullName, e.Message); 205TD.ErrorHandlerInvoked(handlers[i].GetType().FullName, handledByThis, error.GetType().FullName);
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
156isDetailObjectValid = detailType.IsAssignableFrom(detailObj.GetType());
System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (5)
116DS.ClientMessageInspectorAfterReceive(this.messageInspectors[i].GetType(), sw.Elapsed); 121TD.ClientMessageInspectorAfterReceiveInvoked(rpc.EventTraceActivity, this.messageInspectors[i].GetType().FullName); 161DS.ClientMessageInspectorBeforeSend(this.messageInspectors[i].GetType(), sw.Elapsed); 166TD.ClientMessageInspectorBeforeSendInvoked(rpc.EventTraceActivity, this.messageInspectors[i].GetType().FullName); 268DS.ClientSelectOperation(operationSelector.GetType(), operationName, sw.Elapsed);
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (6)
265DS.DispatchMessageInspectorAfterReceive(this.messageInspectors[i].GetType(), sw.Elapsed); 270TD.MessageInspectorAfterReceiveInvoked(rpc.EventTraceActivity, this.messageInspectors[i].GetType().FullName); 321DS.DispatchMessageInspectorBeforeSend(this.messageInspectors[i].GetType(), sw.Elapsed); 326TD.MessageInspectorBeforeSendInvoked(rpc.EventTraceActivity, this.messageInspectors[i].GetType().FullName); 331string message = SR.GetString(SR.SFxNullReplyFromExtension2, this.messageInspectors[i].GetType().ToString(), (rpc.Operation.Name ?? "")); 1815DS.DispatchSelectOperation(this.selector.GetType(), operationName, sw.Elapsed);
System\ServiceModel\Dispatcher\InstanceBehavior.cs (3)
228DS.InstanceProviderGet(this.provider.GetType(), instance, sw.Elapsed); 252DS.InstanceProviderGet(this.provider.GetType(), instance, sw.Elapsed); 312DS.InstanceProviderRelease(this.provider.GetType(), instance, sw.Elapsed);
System\ServiceModel\Dispatcher\InstanceContextManager.cs (1)
59throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
System\ServiceModel\Dispatcher\MessageFilterTable.cs (9)
157Type filterType = filter.GetType(); 165if (this.tables[i].priority == priority && this.tables[i].table.GetType().Equals(tableType)) 175if (!table.GetType().Equals(tableType)) 191this.filterTypeMappings.Add(filterType, table.GetType()); 589Type t = this.GetType(); 623return x.table.GetType().FullName.CompareTo(y.table.GetType().FullName); 635return x.table.GetType().FullName.Equals(y.table.GetType().FullName);
System\ServiceModel\Dispatcher\MessageQueryTable.cs (2)
66Type queryType = key.GetType(); 147Type queryType = key.GetType();
System\ServiceModel\Dispatcher\PartialTrustValidationBehavior.cs (2)
123Type bindingType = binding.GetType(); 136Type bindingElementType = element.GetType();
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (6)
184DS.ClientMessageFormatterDeserialize(this.formatter.GetType(), sw.Elapsed); 221DS.ParameterInspectorAfter(this.parameterInspectors[i].GetType(), sw.Elapsed); 226TD.ClientParameterInspectorAfterCallInvoked(rpc.EventTraceActivity, this.parameterInspectors[i].GetType().FullName); 276DS.ParameterInspectorBefore(this.parameterInspectors[i].GetType(), sw.Elapsed); 281TD.ClientParameterInspectorBeforeCallInvoked(rpc.EventTraceActivity, this.parameterInspectors[i].GetType().FullName); 316DS.ClientMessageFormatterSerialize(this.formatter.GetType(), sw.Elapsed);
System\ServiceModel\Dispatcher\SecurityValidationBehavior.cs (2)
782throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecurityTokenParametersHasIncompatibleInclusionMode, binding.Name, binding.Namespace, stp.GetType(), stp.InclusionMode, allowedInclusionModes[0]))); 791if (serviceCredentials != null && serviceCredentials.GetType() != typeof(ServiceCredentials))
System\ServiceModel\Dispatcher\ThreadBehavior.cs (1)
122string text = SR.GetString(SR.SFxMultipleCallbackFromSynchronizationContext, context.GetType().ToString());
System\ServiceModel\Dispatcher\TransactionBehavior.cs (2)
1001AspNetEnvironment.Current.TraceIncrementBusyCount(this.GetType().FullName); 1017AspNetEnvironment.Current.TraceDecrementBusyCount(this.GetType().FullName);
System\ServiceModel\DuplexChannelFactory.cs (1)
242Type userObjectType = callbackInstance.UserObject.GetType();
System\ServiceModel\EndpointIdentity.cs (1)
264throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.UnrecognizedIdentityPropertyType, this.IdentityClaim.GetType().ToString())));
System\ServiceModel\KeyedByTypeCollection.cs (3)
97return item.GetType(); 107if (this.Contains(item.GetType())) 109throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", SR.GetString(SR.DuplicateBehavior1, item.GetType().FullName));
System\ServiceModel\MsmqIntegration\MsmqIntegrationChannelFactory.cs (1)
128XmlSerializer serializer = GetXmlSerializerForType(property.Body.GetType());
System\ServiceModel\Security\AcceleratedTokenProvider.cs (2)
121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.BootstrapSecurityBindingElementNotSet, this.GetType()))); 133throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.BootstrapSecurityBindingElementNotSet, this.GetType())));
System\ServiceModel\Security\AcceptorSessionSymmetricMessageSecurityProtocol.cs (1)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ProtocolMustBeRecipient, this.GetType().ToString())));
System\ServiceModel\Security\AcceptorSessionSymmetricTransportSecurityProtocol.cs (1)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ProtocolMustBeRecipient, this.GetType().ToString())));
System\ServiceModel\Security\ChannelProtectionRequirements.cs (1)
275if (!(message.Body.ReturnValue.GetType().Equals(typeof(MessagePartDescription))))
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (1)
303if ((targetServerCertificate == null) && (targetAddress.Identity != null) && (targetAddress.Identity.GetType() == typeof(X509CertificateEndpointIdentity)))
System\ServiceModel\Security\DataProtectionSecurityStateEncoder.cs (1)
61result.Append(this.GetType().ToString());
System\ServiceModel\Security\FederatedSecurityTokenManager.cs (7)
148new InvalidOperationException( SR.GetString( SR.ID4072, securityTokenHandler.GetType(), tokenType, typeof( UserNameSecurityTokenHandler ) ) ) ); 162new InvalidOperationException( SR.GetString( SR.ID4072, securityTokenHandler.GetType(), tokenType, typeof( RsaSecurityTokenHandler ) ) ) ); 172new InvalidOperationException( SR.GetString( SR.ID4072, securityTokenHandler.GetType(), tokenType, typeof( X509SecurityTokenHandler ) ) ) ); 183new InvalidOperationException( SR.GetString( SR.ID4072, securityTokenHandler.GetType(), tokenType, typeof( SamlSecurityTokenHandler ) ) ) ); 202new InvalidOperationException( SR.GetString( SR.ID4072, securityTokenHandler.GetType(), tokenType, typeof( Saml2SecurityTokenHandler ) ) ) ); 219throw DiagnosticUtility.ExceptionUtility.ThrowHelperInvalidOperation( SR.GetString( SR.ID4240, tokenRequirement.GetType().ToString() ) ); 240throw DiagnosticUtility.ExceptionUtility.ThrowHelperInvalidOperation( SR.GetString( SR.ID4240, tokenRequirement.GetType().ToString() ) );
System\ServiceModel\Security\IdentityVerifier.cs (5)
107SecurityTraceRecordHelper.TraceIdentityVerificationFailure(identity, authorizationContext, this.GetType()); 288SecurityTraceRecordHelper.TraceIdentityVerificationSuccess(eventTraceActivity, identity, identity.IdentityClaim, this.GetType()); 300SecurityTraceRecordHelper.TraceIdentityVerificationSuccess(eventTraceActivity, identity, claim, this.GetType()); 327SecurityTraceRecordHelper.TraceIdentityVerificationSuccess(eventTraceActivity, identity, claim, this.GetType()); 332SecurityTraceRecordHelper.TraceIdentityVerificationFailure(identity, authContext, this.GetType());
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (3)
255Exception e = new InvalidOperationException(SR.GetString(SR.CommunicationObjectCannotBeUsed, this.GetType().ToString(), state.ToString())); 271throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.TargetAddressIsNotSet, this.GetType()))); 275throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecurityAlgorithmSuiteNotSet, this.GetType())));
System\ServiceModel\Security\NegotiationTokenAuthenticator.cs (6)
499throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.IssuerBuildContextNotSet, this.GetType()))); 503throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.IssuedSecurityTokenParametersNotSet, this.GetType()))); 507throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecurityAlgorithmSuiteNotSet, this.GetType()))); 511throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.IssuedTokenCacheNotSet, this.GetType()))); 825primaryIdentity, this.GetType().Name); 846primaryIdentity, this.GetType().Name, exception);
System\ServiceModel\Security\NegotiationTokenProvider.cs (1)
100throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.IssuerBuildContextNotSet, this.GetType())));
System\ServiceModel\Security\PeerCredential.cs (2)
130return (one.GetType().Equals(two.GetType()));
System\ServiceModel\Security\ReceiveSecurityHeader.cs (3)
840if ((this.primaryTokenAuthenticator != null) && (this.primaryTokenAuthenticator.GetType().Equals(spec.TokenAuthenticator.GetType()))) 1778SR.GetString(SR.UnableToFindTokenAuthenticator, token.GetType())));
System\ServiceModel\Security\SecurityHeader.cs (1)
161return string.Format(CultureInfo.InvariantCulture, "{0}(Actor = '{1}')", GetType().Name, this.Actor);
System\ServiceModel\Security\SecurityHeaderTokenResolver.cs (1)
257i, this.tokens[i].AllowedReferenceStyle, this.tokens[i].Token.GetType(), tokens[i].TokenParameters);
System\ServiceModel\Security\SecurityMessageProperty.cs (1)
320throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
System\ServiceModel\Security\SecurityProtocolFactory.cs (4)
763Type authenticatorType = spec.TokenAuthenticator.GetType(); 767Type spec2AuthenticatorType = spec2.TokenAuthenticator.GetType(); 772throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.MultipleSupportingAuthenticatorsOfSameType, spec.TokenParameters.GetType()))); 779throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.MultipleSupportingAuthenticatorsOfSameType, spec.TokenParameters.GetType())));
System\ServiceModel\Security\SecuritySessionClientSettings.cs (3)
295throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecurityStandardsManagerNotSet, this.GetType().ToString()))); 299throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.IssuedSecurityTokenParametersNotSet, this.GetType()))); 615throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ProtocolMisMatch, "IInitiatorSecuritySessionProtocol", this.GetType().ToString())));
System\ServiceModel\Security\SecuritySessionFilter.cs (2)
247Fx.Assert(String.Format(CultureInfo.InvariantCulture, "Unknown filter type {0}", filter.GetType())); 248throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnknownFilterType, filter.GetType())));
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (6)
537throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.BootstrapSecurityBindingElementNotSet, this.GetType()))); 541throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.IssuerBuildContextNotSet, this.GetType()))); 545throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.IssuedSecurityTokenParametersNotSet, this.GetType()))); 549throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecurityAlgorithmSuiteNotSet, this.GetType()))); 553throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.IssuedTokenCacheNotSet, this.GetType()))); 646if (authorizationPolicies[i].GetType() == typeof(UnconditionalPolicy))
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (7)
299throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.TargetAddressIsNotSet, this.GetType()))); 303throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.IssuerBuildContextNotSet, this.GetType()))); 307throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.IssuedSecurityTokenParametersNotSet, this.GetType()))); 311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.BootstrapSecurityBindingElementNotSet, this.GetType()))); 315throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecurityAlgorithmSuiteNotSet, this.GetType()))); 329throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.IssuerBuildContextNotSet, this.GetType()))); 333throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.BootstrapSecurityBindingElementNotSet, this.GetType())));
System\ServiceModel\Security\SecuritySessionServerSettings.cs (12)
501throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecuritySessionRequiresIssuanceAuthenticator, typeof(IIssuanceSecurityTokenAuthenticator), this.sessionTokenAuthenticator.GetType()))); 505throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecuritySessionRequiresSecurityContextTokenCache, this.sessionTokenResolver.GetType(), typeof(ISecurityContextSecurityTokenCache)))); 519throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecurityStandardsManagerNotSet, this.GetType()))); 523throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.IssuedSecurityTokenParametersNotSet, this.GetType()))); 531throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecurityChannelListenerNotSet, this.GetType()))); 535throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecuritySettingsLifetimeManagerNotSet, this.GetType()))); 722throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.SessionTokenIsNotSecurityContextToken, newToken.GetType(), typeof(SecurityContextSecurityToken)))); 727throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.SessionTokenIsNotSecurityContextToken, oldToken.GetType(), typeof(SecurityContextSecurityToken)))); 782throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.SessionTokenIsNotSecurityContextToken, issuedToken.GetType(), typeof(SecurityContextSecurityToken)))); 1171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ProtocolMisMatch, "IAcceptorSecuritySessionProtocol", this.GetType().ToString()))); 3063throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ServerReceivedCloseMessageStateIsCreated, this.GetType().ToString()))); 3843throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ServerReceivedCloseMessageStateIsCreated, this.GetType().ToString())));
System\ServiceModel\Security\SecurityTokenAuthenticatorAdapter.cs (1)
45return ((token.GetType() == _securityTokenHandler.TokenType) && (_securityTokenHandler.CanValidateToken));
System\ServiceModel\Security\SecurityUtils.cs (3)
1412if ((token != null) && !messageProperty.TransportToken.SecurityToken.GetType().IsSubclassOf(typeof(UserNameSecurityToken))) 1421if ((token != null) && !messageProperty.ProtectionToken.SecurityToken.GetType().IsSubclassOf(typeof(UserNameSecurityToken))) 1433if ((token != null) && !supportingTokenSpecification.SecurityToken.GetType().IsSubclassOf(typeof(UserNameSecurityToken)))
System\ServiceModel\Security\SendSecurityHeader.cs (5)
418sourceTokenIdentifierClause = new LocalIdKeyIdentifierClause(wrappedKey.Id, wrappedKey.GetType()); 439encryptingKeyIdentifierClause = new LocalIdKeyIdentifierClause(derivedEncryptingToken.Id, derivedEncryptingToken.GetType()); 804signingKeyIdentifierClause = new LocalIdKeyIdentifierClause(signingToken.Id, signingToken.GetType()); 936signingKeyClause = new LocalIdKeyIdentifierClause(dkt.Id, dkt.GetType()); 967signingKeyClause = new LocalIdKeyIdentifierClause(dkt.Id, dkt.GetType());
System\ServiceModel\Security\SymmetricSecurityProtocol.cs (1)
174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ProtocolMustBeInitiator, this.GetType().ToString())));
System\ServiceModel\Security\TlsnegoTokenAuthenticator.cs (1)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.TokenProviderReturnedBadToken, token == null ? "<null>" : token.GetType().ToString())));
System\ServiceModel\Security\TlsnegoTokenProvider.cs (1)
61throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.TokenProviderReturnedBadToken, token.GetType().ToString())));
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (1)
393Fx.Assert(driver.GetType() == typeof(WSTrustDec2005.DriverDec2005), "Invalid Trust Driver specified for Trust 1.3.");
System\ServiceModel\Security\Tokens\ProviderBackedSecurityToken.cs (1)
84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new SecurityTokenException( SR.GetString( SR.SecurityTokenNotResolved, _tokenProvider.GetType().ToString() ) ) );
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
349throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().FullName));
System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (4)
90throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecurityTokenParametersCloneInvalidResult, this.GetType().ToString()))); 114SR.GetString(SR.TokenDoesNotSupportKeyIdentifierClauseCreation, token.GetType().Name, referenceStyle))); 157SR.GetString(SR.TokenDoesNotSupportKeyIdentifierClauseCreation, token.GetType().Name, referenceStyle))); 197sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString()));
System\ServiceModel\Security\Tokens\ServiceModelSecurityTokenRequirement.cs (1)
236sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString()));
System\ServiceModel\Security\Tokens\SupportingTokenParameters.cs (3)
158if (parameters == null || parameters.GetType() != this.GetType()) 163SR.GetString(SR.CloneNotImplementedCorrectly, new object[] { this.GetType(), (parameters != null) ? parameters.ToString() : "null" }));
System\ServiceModel\Security\WrappedSamlSecurityTokenAuthenticator.cs (1)
55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new ArgumentException( SR.GetString( SR.ID4101, token.GetType().ToString() ) ) );
System\ServiceModel\Security\WrapperSecurityCommunicationObject.cs (1)
28return this.innerCommunicationObject.GetType();
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (4)
252if (tokenEntry.SupportsCore(token.GetType())) 262if (token.GetType() == typeof(ProviderBackedSecurityToken)) 269if (tokenEntry.SupportsCore(token.GetType())) 290throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.StandardsManagerCannotWriteObject, token.GetType())));
System\ServiceModel\Security\WSTrustChannel.cs (2)
104throw IM.DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID2004, typeof(WSTrustChannelAsyncResult), iar.GetType())); 1048SR.GetString(SR.ID2004, typeof(WSTrustChannelAsyncResult), result.GetType()));
System\ServiceModel\Security\WSTrustServiceContract.cs (3)
621throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.ID2004, typeof(ProcessCoreAsyncResult), ar.GetType()), "ar")); 1432throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID2004, typeof(ProcessCoreAsyncResult), ar.GetType())); 1520throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID2004, typeof(DispatchRequestAsyncResult), ar.GetType()));
System\ServiceModel\ServiceAuthenticationManager.cs (2)
119(message.Properties.Security.ProtectionToken.SecurityToken.GetType() == typeof(SecurityContextSecurityToken))) 129(tokenSpecification.SecurityToken.GetType() == typeof(SecurityContextSecurityToken)))
System\ServiceModel\ServiceChannelManager.cs (3)
121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 274throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
System\ServiceModel\ServiceHost.cs (2)
1691this.serviceType = singletonInstance.GetType(); 2028InitializeDescription(singletonInstance.GetType(), baseAddresses);
System\ServiceModel\SynchronizedCollection.cs (1)
312throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.SynchronizedCollectionWrongType1, value.GetType().FullName)));
System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
269Type type = (value == null) ? typeof(Object) : value.GetType();
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (2)
72this.feedType = feedToWrite.GetType(); 849throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.FeedHasNonContiguousItems, this.GetType().ToString())));
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (1)
57this.itemType = itemToWrite.GetType();
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (2)
71this.inlineDocumentType = documentToWrite.GetType(); 76this.referencedDocumentType = documentToWrite.GetType();
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (1)
61this.documentType = documentToWrite.GetType();
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (2)
78this.feedType = feedToWrite.GetType(); 996throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.FeedHasNonContiguousItems, this.GetType().ToString())));
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (1)
65this.itemType = itemToWrite.GetType();
System\ServiceModel\Syndication\SyndicationElementExtension.cs (6)
73dataContractSerializer = new DataContractSerializer(dataContractExtension.GetType()); 89serializer = new XmlSerializer(xmlSerializerExtension.GetType()); 138if (this.extensionData != null && typeof(TExtension).IsAssignableFrom(extensionData.GetType())) 154if (this.extensionData != null && typeof(TExtension).IsAssignableFrom(extensionData.GetType())) 284XmlQualifiedName qName = dcExporter.GetRootElementName(this.extensionData.GetType()); 300XmlTypeMapping typeMapping = importer.ImportTypeMapping(this.extensionData.GetType());
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (2)
78dataContractSerializer = new DataContractSerializer(dataContractExtension.GetType()); 91serializer = new XmlSerializer(xmlSerializerExtension.GetType());
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
54return String.Format(CultureInfo.CurrentCulture, "{0}, SyndicationVersion={1}", this.GetType(), this.Version);
System\ServiceModel\Syndication\SyndicationItemFormatter.cs (1)
55return String.Format(CultureInfo.CurrentCulture, "{0}, SyndicationVersion={1}", this.GetType(), this.Version);
System.ServiceModel.Activation (4)
System\ServiceModel\Activation\Diagnostics\TraceUtility.cs (1)
48return source.GetType().ToString() + "/" + source.GetHashCode().ToString(CultureInfo.CurrentCulture);
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (2)
645AspNetEnvironment.Current.TraceIncrementBusyCount(this.GetType().FullName); 737AspNetEnvironment.Current.TraceDecrementBusyCount(this.GetType().FullName);
System\ServiceModel\Activation\ServiceRoute.cs (1)
23TD.AspNetRoute(routePrefix, serviceType.AssemblyQualifiedName, serviceHostFactory.GetType().AssemblyQualifiedName);
System.ServiceModel.Activities (8)
System\ServiceModel\Activities\CorrelationHandle.cs (1)
343if (correlationInitializerType == correlation.GetType())
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (1)
261if (behavior.GetType().FullName == "System.ServiceModel.Description.PersistenceProviderBehavior")
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (1)
507throw FxTrace.Exception.AsError(new InstancePersistenceException(SRCore.IncorrectValueType(typeof(T), instanceValue.Value.GetType())));
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (1)
634throw FxTrace.Exception.AsError(new ObjectDisposedException(GetType().Name));
System\ServiceModel\Activities\MessagingActivityHelper.cs (1)
306metadata.AddValidationError(SR.NullCorrelationHandleInInitializeCorrelation(correlation.GetType().Name));
System\ServiceModel\Activities\TransactedReceiveScope.cs (1)
346return this.Input.Get(context).GetType();
System\ServiceModel\Activities\WorkflowServiceHost.cs (2)
366TD.ServiceEndpointAdded(address.Uri.ToString(), binding.GetType().ToString(), serviceEndpoint.Contract.Name); 746ThrowIfNotSupported(singletonExtension.GetType());
System.ServiceModel.Channels (5)
System\ServiceModel\Channels\DuplicateMessageDetector.cs (2)
44throw FxTrace.Exception.AsError(new ObjectDisposedException(this.GetType().ToString())); 72throw FxTrace.Exception.AsError(new ObjectDisposedException(this.GetType().ToString()));
System\ServiceModel\Channels\UdpChannelListener.cs (1)
253return this.GetType();
System\ServiceModel\Channels\UdpOutputChannel.cs (1)
344return new ObjectDisposedException(null, SR.ObjectDisposed(this.GetType().Name));
System\ServiceModel\Channels\UdpSocket.cs (1)
265throw FxTrace.Exception.AsError(new ObjectDisposedException(this.GetType().ToString()));
System.ServiceModel.Discovery (12)
System\ServiceModel\Discovery\AnnouncementClient.cs (2)
513announcementEndpoint.GetType().Name, 515this.GetType().Name,
System\ServiceModel\Discovery\Configuration\ConfigurationDiscoveryEndpointProvider.cs (1)
63serviceEndpoint.GetType().FullName)));
System\ServiceModel\Discovery\Configuration\ServiceDiscoveryElement.cs (1)
95serviceEndpoint.GetType().FullName,
System\ServiceModel\Discovery\DiscoveryClient.cs (4)
756discoveryEndpoint.GetType().Name, 758this.GetType().Name, 913throw FxTrace.Exception.AsError(new ObjectDisposedException(this.GetType().Name)); 1332Type userStateType = this.UserState.GetType();
System\ServiceModel\Discovery\DiscoveryClientChannelBase.cs (2)
318SR.DiscoveryMethodImplementationReturnsNull("GetDiscoveryEndpoint", this.discoveryEndpointProvider.GetType()))); 353TD.SynchronizationContextReset(originalSynchronizationContext.GetType().ToString());
System\ServiceModel\Discovery\DiscoveryServiceExtension.cs (1)
75SR.DiscoveryMethodImplementationReturnsNull("GetDiscoveryService", this.GetType())));
System\ServiceModel\Discovery\ServiceDiscoveryBehavior.cs (1)
144dispatchRuntime.Type = discoveryService.GetType();
System.ServiceModel.Internals (8)
System\Runtime\AsyncEventArgs.cs (2)
40throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.AsyncEventArgsCompletionPending(GetType()))); 53throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.AsyncEventArgsCompletedTwice(GetType())));
System\Runtime\AsyncResult.cs (2)
125throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.AsyncResultCompletedTwice(GetType()))); 342throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidAsyncResultImplementation(result.GetType())));
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
349return String.Format(CultureInfo.CurrentCulture, "{0}/{1}", source.GetType().ToString(), source.GetHashCode());
System\Runtime\TypeHelper.cs (3)
43return AreTypesCompatible(source.GetType(), destinationType); 313TypeCode sourceTypeCode = Type.GetTypeCode(source.GetType()); 607Attribute propertyAttribute = property.Attributes[filterAttribute.GetType()];
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\ClientFactory.cs (1)
124behaviors.Remove(behavior.GetType());
System.ServiceModel.Web (20)
System\ServiceModel\Description\WebHttpBehavior.cs (3)
355ValidateIsWebHttpBinding(endpoint, this.GetType().ToString()); 471serviceEndpoint.Address.Uri.AbsoluteUri, behaviorName, transportBindingElement.GetType().Name))); 1251new InvalidOperationException(System.ServiceModel.SR2.GetString(System.ServiceModel.SR2.StreamBodyMemberNotSupported, this.GetType().ToString(), contractName, opName, md.MessageType.ToString(), description.Name)));
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (7)
44throw System.ServiceModel.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR2.GetString(SR2.BodyStyleNotSupportedByWebScript, value, this.GetType().Name, webScriptBodyStyle))); 161SR2.GetString(SR2.WebScriptNotSupportedForXmlSerializerFormat, typeof(XmlSerializerFormatAttribute).Name, this.GetType().ToString()))); 169endpoint.Contract.Name, method, this.GetType().ToString()))); 175SR2.GetString(SR2.WebScriptNotSupportedForXmlSerializerFormat, typeof(UriTemplate).Name, this.GetType().ToString()))); 181SR2.GetString(SR2.WebScriptNotSupportedForXmlSerializerFormat, typeof(UriTemplate).Name, this.GetType().ToString()))); 186throw System.ServiceModel.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR2.GetString(SR2.BodyStyleNotSupportedByWebScript, bodyStyle, this.GetType().Name, webScriptBodyStyle))); 266new InvalidOperationException(SR2.GetString(SR2.JsonNoEndpointAtMetadataAddress, this.GetType().ToString(), serviceEndpoint.Address, serviceEndpoint.Name, host.Description.Name)));
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (4)
171Type objectType = schemaObject.GetType(); 178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.HelpExampleGeneratorHandlerNotFound, schemaObject.GetType().Name))); 184throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.HelpExampleGeneratorMaxDepthLevelReached, schemaObject.GetType().Name))); 225throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.HelpExampleGeneratorSchemaObjectNotSupported, schemaObject.GetType().Name)));
System\ServiceModel\Dispatcher\HttpStreamFormatter.cs (1)
85throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR2.GetString(SR2.ParameterIsNotStreamType, data.GetType(), this.operationName, this.contractName, this.contractNs)));
System\ServiceModel\Dispatcher\QueryStringConverter.cs (2)
156parameterType.ToString(), this.GetType().Name))); 246parameterType.ToString(), this.GetType().Name)));
System\ServiceModel\Dispatcher\SingleBodyParameterMessageFormatter.cs (2)
273serializer = GetOutputSerializer(body.GetType()); 276throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR2.GetString(SR2.CannotSerializeType, body.GetType(), this.operationName, this.contractName, this.contractNs, this.serializerType)));
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (1)
183SR2.GetString(SR2.UriTemplateQueryVarMustBeConvertible, operationDescription.XmlName.DecodedName, contractName, parameterName, mpd.Type, qsc.GetType().Name)));
System.Transactions (25)
System\Transactions\DistributedTransactionPermission.cs (1)
132Type type = this.GetType();
System\Transactions\EnlistmentState.cs (8)
110Debug.Assert( false, string.Format( null, "Invalid Event for InternalEnlistment State; Current State: {0}", this.GetType() )); 117Debug.Assert( false, string.Format( null, "Invalid Event for InternalEnlistment State; Current State: {0}", this.GetType() )); 124Debug.Assert( false, string.Format( null, "Invalid Event for InternalEnlistment State; Current State: {0}", this.GetType() )); 131Debug.Assert( false, string.Format( null, "Invalid Event for InternalEnlistment State; Current State: {0}", this.GetType() )); 138Debug.Assert( false, string.Format( null, "Invalid Event for InternalEnlistment State; Current State: {0}", this.GetType() )); 145Debug.Assert( false, string.Format( null, "Invalid Event for InternalEnlistment State; Current State: {0}", this.GetType() )); 152Debug.Assert( false, string.Format( null, "Invalid Event for InternalEnlistment State; Current State: {0}", this.GetType() )); 159Debug.Assert( false, string.Format( null, "Invalid Event for InternalEnlistment State; Current State: {0}", this.GetType() ));
System\Transactions\Oletx\OletxTransactionManager.cs (1)
563this.GetType(),
System\Transactions\Trace\DiagnosticTrace.cs (1)
471return source.GetType().ToString() + "/" + source.GetHashCode().ToString(CultureInfo.CurrentCulture);
System\Transactions\TransactionState.cs (14)
794Debug.Assert( false, string.Format( null, "Invalid Event for State; Current State: {0}", this.GetType() )); 923Debug.Assert( false, string.Format( null, "Invalid Event for State; Current State: {0}", this.GetType() )); 935Debug.Assert( false, string.Format( null, "Invalid Event for State; Current State: {0}", this.GetType() )); 947Debug.Assert( false, string.Format( null, "Invalid Event for State; Current State: {0}", this.GetType() )); 959Debug.Assert( false, string.Format( null, "Invalid Event for State; Current State: {0}", this.GetType() )); 971Debug.Assert( false, string.Format( null, "Invalid Event for State; Current State: {0}", this.GetType() )); 983Debug.Assert( false, string.Format( null, "Invalid Event for State; Current State: {0}", this.GetType() )); 995Debug.Assert( false, string.Format( null, "Invalid Event for State; Current State: {0}", this.GetType() )); 1007Debug.Assert( false, string.Format( null, "Invalid Event for State; Current State: {0}", this.GetType() )); 1019Debug.Assert( false, string.Format( null, "Invalid Event for State; Current State: {0}", this.GetType() )); 1036Debug.Assert( false, string.Format( null, "Invalid Event for State; Current State: {0}", this.GetType() )); 1043Debug.Assert( false, string.Format( null, "Invalid Event for State; Current State: {0}", this.GetType() )); 1050Debug.Assert( false, string.Format( null, "Invalid Event for State; Current State: {0}", this.GetType() )); 2793serializationInfo.FullTypeName = tx.PromotedTransaction.GetType().FullName;
System.Web (320)
Cache\CacheDependency.cs (6)
370if (dependency.GetType() != s_dependencyEmpty.GetType()) { 1107if ( ! object.ReferenceEquals(d.GetType(), typeof(CacheDependency)) && 1108! object.ReferenceEquals(d.GetType(), typeof(AggregateCacheDependency)) ) { 1137if (object.ReferenceEquals(d.GetType(), typeof(CacheDependency)) 1138|| object.ReferenceEquals(d.GetType(), typeof(AggregateCacheDependency))) {
Compilation\AppSettingsExpressionBuilder.cs (3)
32new CodeTypeReferenceExpression(this.GetType()), 38new CodeTypeReferenceExpression(this.GetType()), 49return GetAppSetting(entry.Expression, target.GetType(), entry.PropertyInfo.Name);
Compilation\AssemblyBuilder.cs (1)
459Type t = buildProvider.GetType();
Compilation\BaseCodeDomTreeGenerator.cs (2)
767o = _generatedColumnOffsetDictionary[codeDomProvider.GetType()]; 809_generatedColumnOffsetDictionary[codeDomProvider.GetType()] = offset;
Compilation\BrowserCapabilitiesCompiler.cs (1)
246int hashKey = bd.GetType().GetHashCode() ^ parentName.GetHashCode();
Compilation\BuildProvider.cs (1)
436return buildProvider.GetType().Name;
Compilation\CodeDOMUtility.cs (1)
58(value == null || value.GetType().IsPrimitive)) {
Compilation\CompilationUtil.cs (1)
552PropertyInfo pi = ci.GetType().GetProperty("ProviderOptions",
Compilation\ConnectionStringsExpressionBuilder.cs (2)
58return new CodeMethodInvokeExpression(new CodeTypeReferenceExpression(this.GetType()), "GetConnectionString", new CodePrimitiveExpression(name)); 61return new CodeMethodInvokeExpression(new CodeTypeReferenceExpression(this.GetType()), "GetConnectionStringProviderName", new CodePrimitiveExpression(name));
Compilation\RouteUrlExpressionBuilder.cs (1)
31new CodeTypeReferenceExpression(this.GetType()),
Compilation\RouteValueExpressionBuilder.cs (1)
31new CodeTypeReferenceExpression(this.GetType()),
Compilation\XsdBuildProvider.cs (2)
55bool isVer35OrAbove = CompilationUtil.IsCompilerVersion35OrAbove(assemblyBuilder.CodeDomProvider.GetType()); 70var isVer35 = CompilationUtil.IsCompilerVersion35(assemblyBuilder.CodeDomProvider.GetType());
Configuration\HandlerFactoryCache.cs (4)
39throw new HttpException(SR.GetString(SR.Type_not_factory_or_handler, instance.GetType().FullName)); 41TelemetryLogger.LogHttpHandler(instance.GetType()); 57throw new HttpException(SR.GetString(SR.Type_not_factory_or_handler, instance.GetType().FullName)); 59TelemetryLogger.LogHttpHandler(instance.GetType());
Configuration\HostingPreferredMapPath.cs (2)
35if (hostingConfigMapPath == null || iisConfigMapPath.GetType() == hostingConfigMapPath.GetType())
Configuration\HttpCapabilitiesBase.cs (1)
238Type controlType = control.GetType();
Configuration\RemoteWebConfigurationHost.cs (1)
337typeName = protectionProvider.GetType().AssemblyQualifiedName;
Configuration\RuntimeConfig.cs (2)
642if (result != null && result.GetType() != type) { 685if (result.GetType() != type) {
DefaultHttpHandler.cs (1)
78if (!this.GetType().Assembly.GlobalAssemblyCache) {
ErrorFormatter.cs (1)
1029sb.Append("[" + _exStack[i].GetType().Name);
Handlers\TransferRequestHandler.cs (1)
55string errorMessage = SR.GetString(SR.HttpTaskAsyncHandler_CannotExecuteSynchronously, GetType());
Hosting\ApplicationManager.cs (2)
1611Debug.Assert(hostExecutionContextManager is HostExecutionContextManager || hostExecutionContextManager.GetType() == typeof(object), "THostExecutionContextManager was an unexpected type!"); 1617Debug.Assert(hostSecurityManager is HostSecurityManager || hostSecurityManager.GetType() == typeof(object), "THostSecurityManager was an unexpected type!");
Hosting\HostingEnvironment.cs (2)
777String key = obj.GetType().FullName; 901String key = obj.GetType().FullName;
HttpApplication.cs (2)
1783this.GetType().FullName, 1894Type targetType = target.GetType();
HttpContext.cs (1)
890Type handlerType = handler.GetType();
HttpResponse.cs (1)
1202Debug.Trace("internal", "errorFormatter's type = " + errorFormatter.GetType());
HttpRuntime.cs (3)
1479if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Verbose, EtwTraceFlags.Infrastructure)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_START_HANDLER, context.WorkerRequest, handler.GetType().FullName, "Start"); 1691if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Verbose, EtwTraceFlags.Infrastructure)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_START_HANDLER, context.WorkerRequest, app.GetType().FullName, "Start"); 2618IPermission allowedPermission = NamedPermissionSet.GetPermission(askedPermission.GetType());
httpserverutility.cs (1)
673throw new HttpException(SR.GetString(SR.Error_executing_child_request_for_handler, handler.GetType().ToString()), error);
httpstaticobjectscollection.cs (1)
248_type = instance.GetType();
HttpTaskAsyncHandler.cs (1)
30string errorMessage = SR.GetString(SR.HttpTaskAsyncHandler_CannotExecuteSynchronously, GetType());
Management\BufferedWebEventProvider.cs (1)
60Debug.Trace("BufferedWebEventProvider", "Saving event to buffer: event=" + eventRaised.GetType().Name);
Management\EventlogProvider.cs (1)
180Debug.Trace("EventLogWebEventProvider", "ProcessEvent: event=" + eventRaised.GetType().Name);
Management\MailWebEventProvider.cs (3)
61SR.GetString(SR.MailWebEventProvider_no_recipient_error, this.GetType().ToString(), 95eventRaised.GetType().ToString(), 142Debug.Trace("MailWebEventProvider", "ProcessEvent: type =" + eventRaised.GetType() +
Management\SqlWebEventProvider.cs (2)
130sqlCommand.Parameters[n++].Value = eventRaised.GetType().ToString(); // @EventType 258Debug.Trace("SqlWebEventProvider", "Writing event to SQL: event=" + eventRaised.GetType().Name);
Management\WebEvents.cs (4)
502"WebEventRaiseDetails", "Event is raised; event class = " + eventRaised.GetType().Name); 521firingRuleInfos = manager._sectionHelper.FindFiringRuleInfos(eventRaised.GetType(), eventRaised.EventCode); 534eventRaised.GetType().FullName, 722_type = dummyEvent.GetType();
Management\wmiprovider.cs (1)
131Debug.Trace("WmiWebEventProvider", "ProcessEvent: event=" + eventRaised.GetType().Name);
ModelBinding\DataAnnotationsModelValidatorProvider.cs (1)
96if (!AttributeFactories.TryGetValue(attribute.GetType(), out factory)) {
ModelBinding\DataTypeUtil.cs (1)
27isDataType = t => t.GetType().Equals(typeof(DataTypeAttribute));
ModelBinding\ModelBinderProviderCollection.cs (1)
102ModelBinderProviderOptionsAttribute options = provider.GetType()
ModelBinding\ModelBinderUtil.cs (1)
104throw Error.ModelBinderUtil_ModelInstanceIsWrong(bindingContext.Model.GetType(), requiredType);
ModelBinding\ModelMetadata.cs (2)
189_realModelType = Model.GetType(); 392if (!toStringResult.Equals(Model.GetType().FullName, StringComparison.Ordinal)) {
ModelBinding\ValidatableObjectAdapter.cs (1)
29model.GetType().FullName
ModelBinding\ValueProviderResult.cs (4)
57bool canConvertFrom = converter.CanConvertFrom(value.GetType()); 59converter = TypeDescriptor.GetConverter(value.GetType()); 74value.GetType().FullName, destinationType.FullName); 86value.GetType().FullName, destinationType.FullName);
PartitionResolver.cs (2)
52EtwTrace.Trace(EtwTraceType.ETW_TYPE_SESSIONSTATE_PARTITION_START, HttpContext.Current.WorkerRequest, partitionResolver.GetType().FullName, id); 63SR.GetString(SR.Bad_partition_resolver_connection_string, partitionResolver.GetType().FullName));
Profile\HttpProfileBase.cs (1)
514bool requireSerializationCheck = pps.ProviderInternal == null || pps.ProviderInternal.GetType() == typeof(SqlProfileProvider);
Routing\RouteCollection.cs (1)
88TelemetryLogger.LogHttpHandler(route.RouteHandler.GetType());
Routing\RouteParser.cs (2)
273if (previousSegmentType == subsegment.GetType()) { 282previousSegmentType = subsegment.GetType();
Routing\UrlRoutingHandler.cs (1)
55routeHandler.GetType()));
Routing\UrlRoutingModule.cs (1)
91routeHandler.GetType()));
Security\AuthStoreRoleProvider.cs (2)
497return objectToCallOn.GetType().InvokeMember(methodName, BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Instance, 516return objectToCallOn.GetType().InvokeMember(propName, BindingFlags.GetProperty | BindingFlags.Public | BindingFlags.Instance,
Security\Roles.cs (4)
117EtwTrace.Trace(EtwTraceType.ETW_TYPE_ROLE_IS_USER_IN_ROLE, HttpContext.Current.WorkerRequest, isRolePrincipal ? "RolePrincipal" : Provider.GetType().FullName, username, roleName, status); 120EtwTrace.Trace(EtwTraceType.ETW_TYPE_ROLE_END, HttpContext.Current.WorkerRequest, isRolePrincipal ? "RolePrincipal" : Provider.GetType().FullName, username); 161EtwTrace.Trace(EtwTraceType.ETW_TYPE_ROLE_GET_USER_ROLES, HttpContext.Current.WorkerRequest, isRolePrincipal ? "RolePrincipal" : Provider.GetType().FullName, username, roleNames, null); 163EtwTrace.Trace(EtwTraceType.ETW_TYPE_ROLE_END, HttpContext.Current.WorkerRequest, isRolePrincipal ? "RolePrincipal" : Provider.GetType().FullName, username);
SiteMap.cs (1)
132throw new ArgumentException(SR.GetString(SR.Provider_must_implement_the_interface, provider.GetType().Name, typeof(SiteMapProvider).Name), "provider");
SiteMapNodeCollection.cs (1)
200SR.GetString(SR.SiteMapNodeCollection_Invalid_Type, value.GetType().ToString()));
SiteMapProvider.cs (1)
319attributes.Add("description", this.GetType().Name);
State\SessionIDManager.cs (1)
133_isInherited = !(this.GetType() == typeof(SessionIDManager));
State\SessionStateItemCollection.cs (1)
198return s_immutableTypes[o.GetType()] != null;
UI\Control.cs (4)
500return SupportsEventValidationAttribute.SupportsEventValidation(this.GetType()); 878return ViewStateModeByIdAttribute.IsEnabled(GetType()); 1496if (ThemeableAttribute.IsTypeThemeable(this.GetType())) { 2437Page.Trace.AddNewControl(UniqueID, parentId, this.GetType().FullName, viewstatesize, controlstatesize);
UI\ControlBuilder.cs (9)
1495Debug.Assert(typeof(IParserAccessor).IsAssignableFrom(parentObj.GetType())); 2014flags[isIParserAccessor] = typeof(IParserAccessor).IsAssignableFrom(obj.GetType()); 2176Debug.Assert(((ComplexPropertyEntry)entry).IsCollectionItem, "The entry should be a collection entry, instead it's a " + entry.GetType()); 2189MethodInfo methodInfo = ControlType.GetMethod("Add", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { objValue.GetType() }, null); 2443else if (evalValue != null && !entry.Type.IsAssignableFrom(evalValue.GetType())) { 2505Type templateControlType = TemplateControl.GetType(); 2524FieldInfo fieldInfo = TargetFrameworkUtil.GetField(templateControl.GetType(), control.ID, 2528if (fieldInfo == null || fieldInfo.IsPrivate || !fieldInfo.FieldType.IsAssignableFrom(control.GetType())) { 2885bool usingStandardResources = typeof(ResourceExpressionBuilder) == resourcesExpressionBuilder.GetType();
UI\ControlPropertyNameConverter.cs (1)
30PropertyDescriptorCollection pdc = TypeDescriptor.GetProperties(control.GetType());
UI\DataBinder.cs (6)
147Type containerType = container.GetType(); 177throw new HttpException(SR.GetString(SR.DataBinder_Prop_Not_Found, container.GetType().FullName, propName)); 277collectionProp.GetType().GetProperty("Item", BindingFlags.Public | BindingFlags.Instance, null, null, new Type[] { indexValue.GetType() }, null); 282throw new ArgumentException(SR.GetString(SR.DataBinder_No_Indexed_Accessor, collectionProp.GetType().FullName)); 338PropertyInfo propInfo = container.GetType().GetProperty(dataItemPropertyName,
UI\DataSourceControl.cs (4)
85throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 99throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 117throw new NotSupportedException(SR.GetString(SR.ControlNonVisual, this.GetType().Name)); 166throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\EmptyControlCollection.cs (1)
30Owner.GetType().ToString()));
UI\FilterableAttribute.cs (1)
87return IsTypeFilterable(instance.GetType());
UI\HierarchicalDataSourceControl.cs (4)
66throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 81throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 100throw new NotSupportedException(SR.GetString(SR.ControlNonVisual, this.GetType().Name)); 132throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\HtmlControls\HtmlInputFile.cs (1)
172throw new NotSupportedException(SR.GetString(SR.Value_Set_Not_Supported, this.GetType().Name));
UI\HtmlControls\HtmlSelect.cs (5)
214throw new NotSupportedException(SR.GetString(SR.InnerHtml_not_supported, this.GetType().Name)); 217throw new NotSupportedException(SR.GetString(SR.InnerHtml_not_supported, this.GetType().Name)); 227throw new NotSupportedException(SR.GetString(SR.InnerText_not_supported, this.GetType().Name)); 230throw new NotSupportedException(SR.GetString(SR.InnerText_not_supported, this.GetType().Name)); 491throw new HttpException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "HtmlSelect", obj.GetType().Name));
UI\HtmlControls\HtmlTable.cs (6)
169throw new NotSupportedException(SR.GetString(SR.InnerHtml_not_supported, this.GetType().Name)); 172throw new NotSupportedException(SR.GetString(SR.InnerHtml_not_supported, this.GetType().Name)); 182throw new NotSupportedException(SR.GetString(SR.InnerText_not_supported, this.GetType().Name)); 185throw new NotSupportedException(SR.GetString(SR.InnerText_not_supported, this.GetType().Name)); 303throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "HtmlTable", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here 315throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "HtmlTable", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here
UI\HtmlControls\HtmlTableRow.cs (6)
155throw new NotSupportedException(SR.GetString(SR.InnerHtml_not_supported, this.GetType().Name)); 158throw new NotSupportedException(SR.GetString(SR.InnerHtml_not_supported, this.GetType().Name)); 168throw new NotSupportedException(SR.GetString(SR.InnerText_not_supported, this.GetType().Name)); 171throw new NotSupportedException(SR.GetString(SR.InnerText_not_supported, this.GetType().Name)); 245throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "HtmlTableRow", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here 257throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "HtmlTableRow", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here
UI\HtmlControls\HtmlTextArea.cs (1)
177throw new HttpException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "HtmlTextArea", obj.GetType().Name.ToString(CultureInfo.InvariantCulture)));
UI\HTMLTextWriter.cs (1)
662_isDescendant = (GetType() != typeof(HtmlTextWriter));
UI\InternalControlCollection.cs (1)
21Owner.GetType().ToString()));
UI\ObjectConverter.cs (1)
44Type fromType = value.GetType();
UI\ObjectStateFormatter.cs (6)
197"Type: " + _page.GetType().Name.ToUpperInvariant() 949if (value.GetType() == typeof(ArrayList)) { 1005if (value.GetType() == typeof(Hashtable)) { 1009else if (value.GetType() == typeof(HybridDictionary)) { 1041Type valueType = value.GetType(); 1194throw new ArgumentException(SR.GetString(SR.ErrorSerializingValue, value.ToString(), value.GetType().FullName),
UI\Page.cs (4)
1540pageHashCode += StringUtil.GetNonRandomizedHashCode(GetType().Name, ignoreCase:true); 1679(Context.Handler == null || GetType() != Context.Handler.GetType())) { 6254throw new HttpException(SR.GetString(SR.ControlRenderedOutsideServerForm, control.ClientID, control.GetType().Name));
UI\PageHandlerFactory.cs (1)
33_isInheritedInstance = (GetType() != typeof(PageHandlerFactory));
UI\PageTheme.cs (2)
103skin = (ControlSkin)ControlSkins[CreateSkinKey(control.GetType(), skinId)]; 106Debug.Assert(skin == null || skin.ControlType == control.GetType());
UI\PartialCachingControl.cs (2)
361_cacheEntry.CssStyleString = GetCssStyleRenderString(output.GetType()); 365HtmlTextWriter tmpHtmlWriter = Page.CreateHtmlTextWriterFromType(tmpWriter, output.GetType());
UI\PropertyMapper.cs (1)
139Type currentType = obj.GetType();
UI\SkinBuilder.cs (1)
273IDictionary skins = _skinBuilders[control.GetType()] as IDictionary;
UI\StateManagedCollection.cs (2)
384Type objectType = o.GetType(); 469Type objectType = o.GetType();
UI\TargetFrameworkUtil.cs (1)
342Type type = obj.GetType();
UI\TemplateControl.cs (4)
288return StringResourceManager.ReadSafeStringResource(GetType()); 398object o = _eventListCache[GetType()]; 406o = (EventList)_eventListCache[GetType()]; 422_eventListCache[GetType()] = o;
UI\ThemeableAttribute.cs (1)
86return IsTypeThemeable(instance.GetType());
UI\TraceContext.cs (2)
525row[SR.Trace_Type] = obj.GetType(); 630row[SR.Trace_Type] = obj.GetType();
UI\WebControls\AdRotator.cs (3)
356if (IsBindableType(sampleItem.GetType())) { 360ID, sampleItem.GetType())); 517Type type = this.GetType();
UI\WebControls\basecomparevalidator.cs (2)
231if (!(DateTimeFormatInfo.CurrentInfo.Calendar.GetType() == typeof(GregorianCalendar))) { 454if (Type == ValidationDataType.Date && DateTimeFormatInfo.CurrentInfo.Calendar.GetType() != typeof(GregorianCalendar)) {
UI\WebControls\BaseValidator.cs (1)
84this.GetType().ToString()));
UI\WebControls\BoundField.cs (1)
629if (data.GetType().IsPrimitive) {
UI\WebControls\BulletedList.cs (1)
58throw new NotSupportedException(SR.GetString(SR.Property_Set_Not_Supported, "AutoPostBack", this.GetType().ToString()));
UI\WebControls\Calendar.cs (1)
1469bool hasRenderEvent = (this.GetType() != typeof(Calendar)
UI\WebControls\CheckBox.cs (1)
187Type t = this.GetType();
UI\WebControls\Content.cs (1)
162throw new NotSupportedException(SR.GetString(SR.Property_Set_Not_Supported, "ContentPlaceHolderID", this.GetType().ToString()));
UI\WebControls\DataBoundControlHelper.cs (1)
46throw new HttpException(SR.GetString(SR.DataBoundControlHelper_NoNamingContainer, control.GetType().Name, control.ID));
UI\WebControls\DataControlField.cs (1)
643return headerText.Length > 0 ? headerText : GetType().Name;
UI\WebControls\DataGrid.cs (2)
885Type dataSourceType = realDataSource.GetType(); 908sampleItemType = sampleItem.GetType();
UI\WebControls\DetailsView.cs (2)
1572throw new HttpException(SR.GetString(SR.DataBoundControl_NeedICollectionOrTotalRowCount, GetType().Name)); 3591throw new InvalidOperationException(SR.GetString(SR.CannotUseParentPostBackWhenValidating, this.GetType().Name, ID));
UI\WebControls\DetailsViewRowsGenerator.cs (2)
11throw new ArgumentException(SR.GetString(SR.InvalidDefaultAutoFieldGenerator, GetType().FullName, typeof(DetailsView).FullName)); 35dataItemType = dataItem.GetType();
UI\WebControls\ErrorStyle.cs (2)
64PropertyDescriptorCollection oldProperties = TypeDescriptor.GetProperties(GetType(), attributes); 72GetType(), property, new DefaultValueAttribute(typeof(Color), "Red"));
UI\WebControls\ErrorTableItemStyle.cs (2)
62PropertyDescriptorCollection oldProperties = TypeDescriptor.GetProperties(GetType(), attributes); 70GetType(), property, new DefaultValueAttribute(typeof(Color), "Red"));
UI\WebControls\FormView.cs (3)
1346throw new HttpException(SR.GetString(SR.DataBoundControl_NeedICollectionOrTotalRowCount, GetType().Name)); 2866propertyName, GetType().Name, ID)); 3031throw new InvalidOperationException(SR.GetString(SR.CannotUseParentPostBackWhenValidating, this.GetType().Name, ID));
UI\WebControls\GridView.cs (2)
1956throw new HttpException(SR.GetString(SR.DataBoundControl_NeedICollectionOrTotalRowCount, GetType().Name)); 4449throw new InvalidOperationException(SR.GetString(SR.CannotUseParentPostBackWhenValidating, this.GetType().Name, ID));
UI\WebControls\GridViewColumnsGenerator.cs (3)
12throw new ArgumentException(SR.GetString(SR.InvalidDefaultAutoFieldGenerator, GetType().FullName, typeof(GridView).FullName)); 42Type dataSourceType = realDataSource.GetType(); 65sampleItemType = sampleItem.GetType();
UI\WebControls\HiddenField.cs (4)
39throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 52throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 102throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name)); 182(this.GetType() != typeof(HiddenField))) {
UI\WebControls\HotSpot.cs (1)
227return GetType().Name;
UI\WebControls\ImageButton.cs (1)
146throw new NotSupportedException(SR.GetString(SR.Property_Set_Not_Supported, "GenerateEmptyAlternateText", this.GetType().ToString()));
UI\WebControls\ImageField.cs (1)
526if (data.GetType().IsPrimitive) {
UI\WebControls\ListControl.cs (1)
264Type t = this.GetType();
UI\WebControls\listitem.cs (1)
374throw new HttpException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "ListItem", obj.GetType().Name.ToString(CultureInfo.InvariantCulture)));
UI\WebControls\Literal.cs (2)
106throw new HttpException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "Literal", obj.GetType().Name.ToString(CultureInfo.InvariantCulture))); 125throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\WebControls\LoginUtil.cs (2)
308throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name)); 354propertyName, _owner.GetType().Name, _owner.ID));
UI\WebControls\LoginView.cs (1)
254throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\WebControls\MenuRendererClassic.cs (1)
197Menu.Page.ClientScript.RegisterStartupScript(Menu, GetType(),
UI\WebControls\ModelDataSourceView.cs (4)
314var propInfo = o.GetType().GetProperty(name); 1136type = instance.GetType(); 1143type = instance.GetType(); 1259parameterInfo.Name, methodInfo, methodInfo.DeclaringType, value.GetType(), parameterInfo.ParameterType);
UI\WebControls\MultiView.cs (1)
170throw new HttpException(SR.GetString(SR.MultiView_cannot_have_children_of_type, obj.GetType().Name));
UI\WebControls\ObjectDataSource.cs (1)
818sb.Append(GetType().GetHashCode().ToString(CultureInfo.InvariantCulture));
UI\WebControls\ObjectDataSourceView.cs (1)
735Type paramValueType = value.GetType();
UI\WebControls\Parameter.cs (2)
257if (ignoreNullableTypeChanges && IsNullableType(value.GetType())) { 301if (ignoreNullableTypeChanges && IsNullableType(value.GetType())) {
UI\WebControls\SqlDataSource.cs (2)
871sb.Append(GetType().GetHashCode().ToString(CultureInfo.InvariantCulture)); 949throw new HttpException(SR.GetString(SR.SqlDataSource_NoDbPermission, _providerFactory.GetType().Name, ID));
UI\WebControls\SubMenuStyle.cs (2)
271 PropertyDescriptorCollection oldProperties = TypeDescriptor.GetProperties(GetType(), attributes); 286 newProperties[i] = TypeDescriptor.CreateProperty(GetType(), property, newAttributes);
UI\WebControls\Substitution.cs (1)
113callback = GetDelegate(target.GetType(), MethodName);
UI\WebControls\Table.cs (2)
396throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "Table", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here 408throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "Table", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here
UI\WebControls\TableRow.cs (2)
169throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "TableRow", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here 181throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "TableRow", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here
UI\WebControls\TextBox.cs (2)
268(this.GetType() != typeof(TextBox))) { 551throw new HttpException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "TextBox", obj.GetType().Name.ToString(CultureInfo.InvariantCulture)));
UI\WebControls\TreeView.cs (4)
2644if (!scriptOM.IsClientScriptBlockRegistered(GetType(), "PopulateNode")) { 2646scriptOM.RegisterClientScriptBlock(this, GetType(), "PopulateNode", 2712scriptOM.RegisterClientScriptBlock(this, GetType(), ClientID + "_CreateDataObject1", "var " + clientDataObjectID + " = null;", true); 2713scriptOM.RegisterStartupScript(this, GetType(), ClientID + "_CreateDataObject2", createDataObjectScript, true);
UI\WebControls\Wizard.cs (2)
3253throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name)); 3367throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\WebControls\xml.cs (4)
235throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 249throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 352throw new HttpException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "Xml", obj.GetType().Name.ToString(CultureInfo.InvariantCulture))); 374throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\WebControls\XmlDataSource.cs (2)
377sb.Append(GetType().GetHashCode().ToString(CultureInfo.InvariantCulture)); 414sb.Append(Page.GetType().AssemblyQualifiedName);
UI\WebControls\XmlDataSourceNodeDescriptor.cs (1)
44return GetType().Name;
UI\WebControls\XmlHierarchyData.cs (1)
133return GetType().Name;
UI\WebParts\BlobPersonalizationState.cs (5)
120PersonalizableAttribute.GetPersonalizablePropertyEntries(control.GetType()); 722extractedInfo._controlType = control.GetType(); 813PersonalizableAttribute.GetPersonalizablePropertyEntries(control.GetType()); 1129PersonalizableAttribute.GetPersonalizablePropertyEntries(control.GetType()); 1247return _controlType.IsAssignableFrom(c.GetType());
UI\WebParts\ConnectionsZone.cs (3)
1019string configControlTypeName = configurationControl.GetType().AssemblyQualifiedName; 1096new ConsumerInfo(consumer, consumerConnectionPoint, transformer.GetType())); 1146new ProviderInfo(provider, providerConnectionPoint, transformer.GetType()));
UI\WebParts\DeclarativeCatalogPart.cs (2)
230set { throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); } 271set { throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); }
UI\WebParts\GenericWebPart.cs (1)
49throw new ArgumentException(SR.GetString(SR.GenericWebPart_NoID, control.GetType().FullName));
UI\WebParts\PageCatalogPart.cs (2)
215set { throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); } 256set { throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); }
UI\WebParts\PersonalizableAttribute.cs (1)
187IDictionary propertyEntries = GetPersonalizablePropertyEntries(control.GetType());
UI\WebParts\PersonalizationProviderCollection.cs (1)
30provider.GetType().FullName, "PersonalizationProvider"));
UI\WebParts\PersonalizationStateQuery.cs (1)
82(value != null && !valueType.IsAssignableFrom(value.GetType()))) {
UI\WebParts\ProxyWebPart.cs (2)
51originalType = childControl.GetType(); 65_originalTypeName = WebPartUtil.SerializeType(webPart.GetType());
UI\WebParts\ProxyWebPartManager.cs (4)
52throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 65throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 97throw new NotSupportedException(SR.GetString(SR.ControlNonVisual, this.GetType().Name)); 109throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name));
UI\WebParts\WebPartConnection.cs (2)
309Type transformerType = transformer.GetType(); 411return GetType().Name;
UI\WebParts\WebPartManager.cs (21)
531throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); 597throw new NotSupportedException(SR.GetString(SR.ControlNonVisual, this.GetType().Name)); 1234if (providerConnectionPoint.ControlType != providerControl.GetType()) { 1237if (consumerConnectionPoint.ControlType != consumerControl.GetType()) { 1338Type transformerType = transformer.GetType(); 1736Type childControlType = childControl.GetType(); 1744newWebPart = (WebPart)Internals.CreateObjectFromType(webPart.GetType()); 1747newWebPart.ID = CreateDynamicWebPartID(webPart.GetType()); 2151writer.WriteAttributeString(ExportTypeNameAttribute, WebPartUtil.SerializeType(control.GetType())); 2265Type valType = ((pi != null) ? pi.PropertyType : ((val != null) ? val.GetType() : typeof(object))); 2278throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name)); 2352return GetConsumerConnectionPoints(webPart.ToControl().GetType()); 2561return GetProviderConnectionPoints(webPart.ToControl().GetType()); 2802partType = childControl.GetType(); 2884personalizableProperties = PersonalizableAttribute.GetPersonalizablePropertyEntries(part.GetType()); 3227childType = childControl.GetType(); 3235return IsAuthorized(webPart.GetType(), null, authorizationFilter, webPart.IsShared); 4085typeName = WebPartUtil.SerializeType(childControl.GetType()); 4091typeName = WebPartUtil.SerializeType(webPart.GetType()); 4180dynamicConnectionState[7*i + 5] = transformer.GetType(); 4316Type type = control.GetType();
UI\WebParts\WebPartMenuStyle.cs (5)
181PropertyDescriptorCollection oldProperties = TypeDescriptor.GetProperties(GetType(), attributes); 186TypeDescriptor.CreateProperty(GetType(), oldPaddingProperty, new DefaultValueAttribute(1)); 190TypeDescriptor.CreateProperty(GetType(), oldSpacingProperty, new DefaultValueAttribute(0)); 194TypeDescriptor.CreateProperty(GetType(), oldFontProperty, 201TypeDescriptor.CreateProperty(GetType(), oldForeColorProperty,
UI\WebParts\WebPartPersonalization.cs (4)
343if (webPartA.GetType() != webPartB.GetType()) { 363if (childControlA.GetType() != childControlB.GetType()) {
UI\WebParts\WebPartTracker.cs (1)
30if (providerConnectionPoint.ControlType != webPart.GetType()) {
UI\XPathBinder.cs (2)
45throw new ArgumentException(SR.GetString(SR.XPathBinder_MustBeIXPathNavigable, container.GetType().FullName)); 109throw new ArgumentException(SR.GetString(SR.XPathBinder_MustBeIXPathNavigable, container.GetType().FullName));
Util\AppVerifier.cs (1)
211httpHandlerType = context.Handler.GetType();
Util\AspCompat.cs (1)
248if (component != null && component.GetType().FullName == "System.__ComObject") {
Util\FastPropertyAccessor.cs (4)
378IWebPropertyAccessor accessor = GetPropertyAccessor(target.GetType(), propName); 387GetPropertyInfo(target.GetType(), propName, out propInfo, out fieldInfo, out declaringType); 418IWebPropertyAccessor accessor = GetPropertyAccessor(target.GetType(), propName); 427GetPropertyInfo(target.GetType(), propName, out propInfo, out fieldInfo, out declaringType);
Util\HttpEncoder.cs (1)
41_isDefaultEncoder = (GetType() == typeof(HttpEncoder));
Util\PinnedArraySegment.cs (1)
64throw new ObjectDisposedException(GetType().FullName);
Util\SmtpMail.cs (4)
84return CallMethod(obj.GetType(), obj, methodName, args); 108return GetProp(obj.GetType(), obj, propName); 125SetProp(obj.GetType(), obj, propName, propValue); 144SetProp(obj.GetType(), obj, propName, propKey, propValue);
WebSockets\AspNetWebSocket.cs (1)
529throw new ObjectDisposedException(objectName: GetType().FullName);
System.Web.ApplicationServices (1)
Hosting\CustomLoaderHelper.cs (1)
108throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, ApplicationServicesStrings.CustomLoader_MustImplementICustomLoader, customLoader.GetType()));
System.Web.DataVisualization (73)
Common\Borders3D\Borders3D.cs (1)
642 if(registeredBorderTypes[name].GetType() == borderType)
Common\ChartTypes\ChartTypeRegistry.cs (1)
172 if(registeredChartTypes[name].GetType() == chartType)
Common\Converters\AxisConverters.cs (6)
77 PropertyInfo propertyInfo = context.Instance.GetType().GetProperty("IntervalType"); 84 propertyInfo = context.Instance.GetType().GetProperty("Interval"); 101 MethodInfo methodInfo = context.Instance.GetType().GetMethod("GetAxis"); 117 if(context.Instance.GetType() != typeof(StripLine) || interval == 0) 153 PropertyInfo propertyInfo = context.Instance.GetType().GetProperty("intervalType"); 170 MethodInfo methodInfo = context.Instance.GetType().GetMethod("GetAxis");
Common\Converters\CustomAttributesConverters.cs (6)
394if (attrInfo.DefaultValue.GetType() == attrInfo.ValueType) 638 if(this._customAttributeInfo.ValueType == obj.GetType() ) 737 if(value.GetType() != this._customAttributeInfo.MaxValue.GetType()) 773 if(value.GetType() != this._customAttributeInfo.MinValue.GetType())
Common\Converters\DataManagerConverters.cs (2)
407 MethodInfo methodInfo = context.Instance.GetType().GetMethod("GetService"); 425throw (new InvalidOperationException(SR.ExceptionEditorChartTypeRegistryServiceInObjectInaccessible(context.Instance.GetType().ToString())));
Common\DataManager\DataPoint.cs (8)
436if (enumerator.GetType() != typeof(System.Data.Common.DbEnumerator)) 635 if(xEnumerator.GetType() != typeof(System.Data.Common.DbEnumerator)) 644 if(yEnumerator[i].GetType() != typeof(System.Data.Common.DbEnumerator)) 806 if(yEnumerator.GetType() != typeof(System.Data.Common.DbEnumerator)) 816 if(xEnumerator.GetType() != typeof(System.Data.Common.DbEnumerator)) 1505columnDataType = enumerator.Current.GetType(); 2103 Type paramType = xValue.GetType(); 2204 Type paramType = yValue[0].GetType();
Common\Formulas\FormulaRegistry.cs (1)
73 if(registeredModules[name].GetType() == moduleType)
Common\General\BaseClasses.cs (3)
196return GetType().Name; 289throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(value, nameController.GetType().Name)); 350string typeName = GetType().Name;
Common\General\BaseCollections.cs (6)
308throw new ArgumentException(SR.ExceptionNameNotFound(name, this.GetType().Name)); 324throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(name, this.GetType().Name)); 327throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(name, this.GetType().Name)); 412throw new ArgumentException(SR.ExceptionNameNotFound(name, this.GetType().Name)); 451throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(item.Name, this.GetType().Name)); 475throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(item.Name, this.GetType().Name));
Common\General\Chart.cs (6)
410 dataSource.GetType().GetInterface("IDataSource") != null 437if (dataSource.GetType().GetInterface("IDataSource") != null) 441MethodInfo m = dataSource.GetType().GetMethod("Select"); 447Type selectArgsType = dataSource.GetType().Assembly.GetType("System.Web.UI.DataSourceSelectArguments", true); 746 if(enumerator.GetType() != typeof(System.Data.Common.DbEnumerator) ) 1146 if(enumerator.GetType() != typeof(System.Data.Common.DbEnumerator))
Common\General\DataManipulator.cs (2)
292 if(obj.GetType() == typeof(Series)) 299 else if(obj.GetType() == typeof(string))
Common\Utilities\XmlSerializer.cs (22)
365 PropertyInfo[] properties = objectToReset.GetType().GetProperties(); 404 MethodInfo mi = objectToReset.GetType().GetMethod("Reset" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); 473MethodInfo mi = objectToReset.GetType().GetMethod("Reset" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); 638 Type currentType = objectToSerialize.GetType(); 732string name = obj.GetType().ToString(); 755 PropertyInfo pi = list.GetType().GetProperty("Item", itemType, new Type[] {typeof(string)} ); 756MethodInfo mi = list.GetType().GetMethod("IndexOf", new Type[] { typeof(String) }); 1503PropertyInfo[] properties = objectToSerialize.GetType().GetProperties(); 1550 MethodInfo mi = objectToSerialize.GetType().GetMethod("ShouldSerialize" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public ); 1719MethodInfo mi = parent.GetType().GetMethod("ShouldSerialize" + elementName, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); 2132throw (new InvalidOperationException(SR.ExceptionChartSerializerPropertyNameUnknown(childNode.Name, objectToDeserialize.GetType().ToString()))); 2150 PropertyInfo pi = obj.GetType().GetProperty(attrName); 2202 throw(new InvalidOperationException(SR.ExceptionChartSerializerPropertyNameUnknown( attrName,obj.GetType().ToString()))); 2366 PropertyInfo[] properties = objectToSerialize.GetType().GetProperties(); 2400MethodInfo mi = objectToSerialize.GetType().GetMethod("ShouldSerialize" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); 2615 MethodInfo mi = parent.GetType().GetMethod("ShouldSerialize" + elementName, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public ); 2681 else if(obj.GetType().IsEnum) 2788throw (new InvalidOperationException(SR.ExceptionChartSerializerBinaryTypeUnsupported(obj.GetType().ToString()))); 2960PropertyInfo listItemPI = objectToDeserialize.GetType().GetProperty("Item", new Type[] { typeof(int) }); 3019 PropertyInfo[] properties = objectToDeserialize.GetType().GetProperties(); 3051 throw(new InvalidOperationException(SR.ExceptionChartSerializerPropertyNameUnknown( pi.Name,objectToDeserialize.GetType().ToString()))); 3201 throw(new InvalidOperationException(SR.ExceptionChartSerializerBinaryTypeUnsupported( obj.GetType().ToString() )));
WebForm\ChartWebControl.cs (9)
272 serviceContainer.AddService(_chartTypeRegistry.GetType(), _chartTypeRegistry);// Chart types registry 273 serviceContainer.AddService(_borderTypeRegistry.GetType(), _borderTypeRegistry);// Border types registry 274 serviceContainer.AddService(_customPropertyRegistry.GetType(), _customPropertyRegistry);// Custom attribute registry 275 serviceContainer.AddService(_dataManager.GetType(), _dataManager); // Data Manager service 276 serviceContainer.AddService(_imageLoader.GetType(), _imageLoader); // Image Loader service 277 serviceContainer.AddService(chartPicture.GetType(), chartPicture); // Chart image service 278 serviceContainer.AddService(_chartSerializer.GetType(), _chartSerializer); // Chart serializer service 281 serviceContainer.AddService(_formulaRegistry.GetType(), _formulaRegistry); // Formula modules service 285 serviceContainer.AddService(_keywordsRegistry.GetType(), _keywordsRegistry); // Keywords registry
System.Web.DynamicData (27)
DynamicData\DataBoundControlParameterTarget.cs (1)
32DataKeyPropertyAttribute attribute = _control.GetType().GetCustomAttributes(true).OfType<DataKeyPropertyAttribute>().FirstOrDefault();
DynamicData\DynamicControl.cs (2)
195var ucType = FieldTemplate.GetType(); 265DynamicDataResources.DynamicControl_ControlMustHaveDateFieldAttribute, GetType().Name, ID));
DynamicData\DynamicEntity.cs (1)
106writer.Write("[" + GetType().Name + "]");
DynamicData\DynamicFilter.cs (1)
97writer.Write("[" + GetType().Name + "]");
DynamicData\DynamicHyperLink.cs (2)
168MetaTable table = Misc.GetTableFromTypeHierarchy(dataItem.GetType()); 173dataItem.GetType().FullName));
DynamicData\DynamicValidator.cs (1)
155_ignoredModelValidationAttributes.ContainsKey(attrib.GetType())) {
DynamicData\FieldTemplateUserControl.cs (2)
498IgnoreModelValidationAttribute(rangeAttribute.GetType()); 531IgnoreModelValidationAttribute(regexAttribute.GetType());
DynamicData\MetaColumn.cs (1)
474return GetType().Name + " " + Name;
DynamicData\MetaForeignKeyColumn.cs (1)
194Type rowType = foreignKeyReference.GetType();
DynamicData\MetaModel.cs (1)
179Type contextType = contextInstance.GetType();
DynamicData\MetaTable.cs (1)
885if (EntityType.IsAssignableFrom(row.GetType())) {
DynamicData\ModelProviders\DLinqDataModelProvider.cs (1)
20ContextType = context.GetType();
DynamicData\ModelProviders\EFColumnProvider.cs (1)
113Debug.Assert(false, String.Format(CultureInfo.CurrentCulture, "Unknown EdmType {0}.", edmType.GetType().FullName));
DynamicData\ModelProviders\EFDataModelProvider.cs (1)
26ContextType = _context.GetType();
DynamicData\ModelProviders\SchemaCreator.cs (3)
17if (IsDataContext(contextInstance.GetType())) { 20if (IsObjectContext(contextInstance.GetType())) { 24throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DynamicDataResources.SchemaCreator_UnknownModel, contextInstance.GetType().FullName));
DynamicData\Util\DataControlHelper.cs (1)
40control.GetType()));
DynamicData\Util\MetaTableHelper.cs (1)
94return MetaTable.GetTable(o.GetType());
DynamicData\Util\Misc.cs (5)
98if (value.GetType() == type) { 103if (converter.CanConvertFrom(value.GetType())) { 107TypeConverter otherConverter = TypeDescriptor.GetConverter(value.GetType()); 114DynamicDataResources.Misc_CannotConvertType, value.GetType(), type)); 297control.GetType().Name, control.ID));
System.Web.Entity (5)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
161throw new InvalidOperationException(Strings.EntityDataSourceUtil_InsertUpdateParametersDontMatchPropertyNameOnEntity(key, entityWrapper.WrappedEntity.GetType().ToString()));
System\Data\WebControls\EntityDataSourceView.cs (3)
280throw new InvalidOperationException(Strings.EntityDataSourceView_QueryCreatedNotAnObjectQuery(queryReturned.GetType().FullName, typeof(T).Name)); 1115contextType = _ctx.GetType(); 1736Type valueType = value.GetType();
System\Data\WebControls\EntityDataSourceViewSchema.cs (1)
62Type type = GetListItemType(results.GetType());
System.Web.Entity.Design (2)
System\Data\WebControls\Design\EntityDataSourceDesigner.cs (1)
377Type designerType = GetType();
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (1)
1012ShowError(Strings.Error_ReturnedNullOnProviderMethod(factory.GetType().Name));
System.Web.Extensions (68)
ClientServices\ClientFormsIdentity.cs (1)
38throw new ObjectDisposedException(this.GetType().FullName);
ClientServices\Providers\ClientSettingsProvider.cs (3)
168name = this.GetType().ToString(); 556if (de.Value != null && !setting.PropertyType.IsAssignableFrom(de.Value.GetType())) 899EventInfo ei = provider.GetType().GetEvent("UserValidated");
ClientServices\Providers\SqlHelper.cs (1)
215engine.GetType().InvokeMember("CreateDatabase", BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Instance,
Compilation\WCFModel\AsmxEndpointPickerExtension.cs (1)
114if (addressBinding != null && addressBinding.GetType() == addressType && IsAsmxUri(addressBinding.Location))
Compilation\WCFModel\SchemaMerger.cs (7)
210Type itemType = originalItem.GetType(); 211if (itemType != item.GetType()) 313if (originalValue.GetType() != newValue.GetType()) 349if (originalValue.GetType() != newValue.GetType()) 554Type itemType = item.GetType();
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (1)
1392if (wsdlImportExtensions[i].GetType() == extensionType)
Compilation\XmlSerializer\DataSvcMapFileSerializer.cs (5)
31System.Type t = o.GetType(); 90System.Type t = o.GetType(); 110System.Type t = o.GetType(); 130System.Type t = o.GetType(); 182System.Type t = o.GetType();
Compilation\XmlSerializer\SvcMapFileSerializer.cs (10)
31System.Type t = o.GetType(); 81System.Type t = o.GetType(); 101System.Type t = o.GetType(); 153System.Type t = o.GetType(); 174System.Type t = o.GetType(); 269System.Type t = o.GetType(); 290System.Type t = o.GetType(); 309System.Type t = o.GetType(); 339System.Type t = o.GetType(); 370System.Type t = o.GetType();
Globalization\ClientCultureInfo.cs (2)
62var calendarType = calendar.GetType(); 115Type calendarType = cultureInfo.DateTimeFormat == null ? null : cultureInfo.DateTimeFormat.Calendar.GetType();
Script\Serialization\JavaScriptSerializer.cs (6)
233Type type = o.GetType(); 322throw new ArgumentException(String.Format(CultureInfo.InvariantCulture, AtlasWeb.JSON_DictionaryTypeNotSupported, o.GetType().FullName)); 373if (o != null && ConverterExistsForType(o.GetType(), out converter)) { 377string typeString = TypeResolver.ResolveTypeId(o.GetType()); 465if (o.GetType().IsPrimitive || o is Decimal) { 479Type type = o.GetType();
Script\Serialization\ObjectConverter.cs (7)
50Type serverType = o.GetType(); 224if (type != null && !type.IsAssignableFrom(o.GetType())) { 300if (o.GetType() == type) { 337if (type == null || o.GetType() == type) { 346if (converter.CanConvertFrom(o.GetType())) { 396if (type.IsAssignableFrom(o.GetType())) { 403throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, AtlasWeb.JSON_CannotConvertObjectToType, o.GetType(), type));
Script\Services\RestHandler.cs (1)
158methodData.MethodName, retVal.GetType().FullName, e.Message));
Script\Services\ServicesUtilities.cs (1)
114XmlSerializer xs = new XmlSerializer(obj.GetType());
Script\Services\WebServiceData.cs (1)
108compiledType = page.GetType();
UI\AsyncPostBackTrigger.cs (1)
102EventInfo eventInfo = _associatedControl.GetType().GetEvent(eventName, BindingFlags.IgnoreCase | BindingFlags.Instance | BindingFlags.Public);
UI\BundleReflectionHelper.cs (1)
56Type resolverType = value.GetType();
UI\ScriptControlManager.cs (2)
292Type extenderControlType = extenderControl.GetType(); 304Type targetControlType = targetControl.GetType();
UI\ScriptReference.cs (1)
546return GetType().Name;
UI\ServiceReference.cs (1)
126return GetType().Name;
UI\WebControls\DataSourceHelper.cs (1)
186Type paramValueType = value.GetType();
UI\WebControls\Dynamic.cs (1)
127PropertyInfo[] props = this.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public);
UI\WebControls\Expressions\MethodExpression.cs (3)
55() => (Owner != null && Owner.TemplateControl != null) ? Owner.TemplateControl.GetType() : null 131if (parameterArray.Length == 0 || !parameterArray[0].ParameterType.IsAssignableFrom(source.GetType())) { 133MethodName, source.GetType()));
UI\WebControls\LinqDataSourceView.cs (7)
371tableMemberInfo = GetTableMemberInfo(contextData.Context.GetType()); 422ValidateContextType(contextData.Context.GetType(), false); 423ValidateTableType(contextData.EntitySet.GetType(), false); 442ValidateContextType(contextData.Context.GetType(), true); 445ValidateTableType(contextData.EntitySet.GetType(), true); 533Type dataObjectType = GetDataObjectType(query.GetType()); 886AtlasWeb.LinqDataSourceView_ValidationFailed, oldDataObject.GetType(), validateExceptions.Values.First().Message), validateExceptions);
UI\WebControls\ListView.cs (1)
1478throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, AtlasWeb.ListView_NeedICollectionOrTotalRowCount, GetType().Name));
UI\WebControls\QueryableDataSourceHelper.cs (2)
44Type genericType = FindGenericEnumerableType(o.GetType()); 59Type listType = typeof(List<>).MakeGenericType(o.GetType());
System.Web.Mobile (71)
Mobile\MobileDeviceCapabilitiesSectionHandler.cs (1)
32if (context == null || context.GetType() != typeof(System.Web.Configuration.HttpConfigurationContext)) {
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (1)
726if (DateTimeFormatInfo.CurrentInfo.Calendar.GetType() ==
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (1)
703if (DateTimeFormatInfo.CurrentInfo.Calendar.GetType() ==
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (1)
647if (DateTimeFormatInfo.CurrentInfo.Calendar.GetType() ==
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlMobileTextWriter.cs (2)
532(cache [_cacheKey].GetType () != typeof (String) || 551(session [_sessionKey].GetType () != typeof (String) ||
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (1)
278control.GetType().Name,
UI\MobileControls\Design\Converters\DataFieldConverter.cs (1)
78else if (value.GetType() == typeof(string))
UI\MobileControls\Design\Converters\DataMemberConverter.cs (1)
75else if (value.GetType() == typeof(string))
UI\MobileControls\Design\Converters\FormConverter.cs (1)
43if (containerType.IsAssignableFrom(control.GetType()))
UI\MobileControls\Design\Converters\ValidatedMobileControlConverter.cs (1)
37if (containerType.IsAssignableFrom(control.GetType()))
UI\MobileControls\Design\DeviceSpecificDesigner.cs (1)
331GetType(), prop,
UI\MobileControls\Design\FormDesigner.cs (1)
202TypeDescriptor.CreateProperty(GetType(), prop, _emptyAttrs);
UI\MobileControls\Design\ListDesigner.cs (1)
620Type designerType = this.GetType();
UI\MobileControls\Design\MobileContainerDesigner.cs (2)
353member.GetType().FullName.Equals(Constants.ReflectPropertyDescriptorTypeFullName)) 469properties["Expressions"] = TypeDescriptor.CreateProperty(this.GetType(), property, BrowsableAttribute.No);
UI\MobileControls\Design\MobileControlDesigner.cs (4)
464member.GetType().FullName.Equals(Constants.ReflectPropertyDescriptorTypeFullName)) 498TypeDescriptor.CreateProperty(this.GetType(), _appliedDeviceFiltersPropName, typeof(String)); 501TypeDescriptor.CreateProperty(this.GetType(), _propertyOverridesPropName, typeof(String)); 507properties[propertyName] = TypeDescriptor.CreateProperty(this.GetType(), property, BrowsableAttribute.No);
UI\MobileControls\Design\MobileControlPersister.cs (7)
153(PersistNameAttribute)TypeDescriptor.GetAttributes(collItem.GetType())[typeof(PersistNameAttribute)]; 167else if (collItem is Control || collItem.GetType() == typeof(System.Web.UI.MobileControls.Style)) 169itemTypeName = GetDeclarativeType(collItem.GetType(), host); 173itemTypeName = collItem.GetType().Name; 184(PersistChildrenAttribute)TypeDescriptor.GetAttributes(collItem.GetType())[typeof(PersistChildrenAttribute)]; 887tagName = GetDeclarativeType(control.GetType(), host); 899(PersistChildrenAttribute)TypeDescriptor.GetAttributes(control.GetType())[typeof(PersistChildrenAttribute)];
UI\MobileControls\Design\MobileTemplatedControlDesigner.cs (5)
447member.GetType().FullName.Equals(Constants.ReflectPropertyDescriptorTypeFullName)) 813TypeDescriptor.CreateProperty(this.GetType(), 823TypeDescriptor.CreateProperty(this.GetType(), 831TypeDescriptor.CreateProperty(this.GetType(), 839properties[_expressionsPropertyName] = TypeDescriptor.CreateProperty(this.GetType(), property, BrowsableAttribute.No);
UI\MobileControls\Design\ObjectListDesigner.cs (1)
222Type designerType = this.GetType();
UI\MobileControls\Design\PropertyOverridesDialog.cs (18)
675_underlyingObject.GetType() 703target.GetType() 758TypeDescriptor.GetProperties(dest.GetType()); 799return style.GetType().GetProperty(property.Name) != null; 890_underlyingObject.GetType()); 960_underlyingObject.GetType() 991newValue.GetType() 1086return TypeDescriptor.GetAttributes(this.GetType()); 1091return TypeDescriptor.GetClassName(this.GetType()); 1096return TypeDescriptor.GetComponentName(this.GetType()); 1101return TypeDescriptor.GetConverter(this.GetType()); 1106return TypeDescriptor.GetDefaultEvent(this.GetType()); 1111return TypeDescriptor.GetDefaultProperty(this.GetType()); 1116return TypeDescriptor.GetEditor(this.GetType(), editorBaseType); 1121return TypeDescriptor.GetEvents(this.GetType()); 1126return TypeDescriptor.GetEvents(this.GetType(), attributes); 1133_underlyingObject.GetType() 1143_underlyingObject.GetType(),
UI\MobileControls\Design\SelectionListDesigner.cs (1)
508Type designerType = this.GetType();
UI\MobileControls\Design\StylesEditorDialog.cs (3)
374Type type = style.GetType(); 435Style newStyle = (Style) Activator.CreateInstance(style.GetType()); 1178_fullName = style.GetType().FullName;
UI\MobileControls\Design\StyleSheetDesigner.cs (3)
344member.GetType().FullName.Equals(Constants.ReflectPropertyDescriptorTypeFullName)) 1101TypeDescriptor.CreateProperty(this.GetType(), _templatesStylePropName, typeof(String), 1114TypeDescriptor.CreateProperty(this.GetType(), _persistedStylesPropName, typeof(ICollection),
UI\MobileControls\DeviceSpecificChoice.cs (2)
336containingTemplateControl.GetType().GetMethod(_deviceFilter, 677if (subBuilder.GetType().FullName == "System.Web.UI.CodeBlockBuilder")
UI\MobileControls\Form.cs (1)
767(subBuilder.GetType().FullName == "System.Web.UI.CodeBlockBuilder") ||
UI\MobileControls\LiteralTextContainerControlBuilder.cs (1)
86else if (subBuilder.GetType().FullName == "System.Web.UI.CodeBlockBuilder")
UI\MobileControls\MobileControl.cs (3)
153GetType().Name)); 926GetType().ToString(), 1010GetType().ToString(),
UI\MobileControls\MobileControlsSectionHandler.cs (1)
29if (context == null || context.GetType() != typeof(System.Web.Configuration.HttpConfigurationContext)) {
UI\MobileControls\MobilePage.cs (3)
412IControlAdapter adapter = RequestingDeviceConfig.NewControlAdapter(control.GetType ()); 808control.GetType().Name)); 1452pageHashCode += StringComparer.InvariantCultureIgnoreCase.GetHashCode(GetType().Name);
UI\MobileControls\ObjectList.cs (1)
838if (IsBindableType(sampleItem.GetType()))
UI\MobileControls\PagedControl.cs (1)
321Debug.Assert (state == null || state.GetType() == typeof(Pair),
System.Web.Services (136)
System\Web\Services\Description\HttpProtocolImporter.cs (1)
113if (type.ContentModel.Content == null) throw new ArgumentException(Res.GetString(Res.Missing2, type.Name, type.ContentModel.GetType().Name), "part");
System\Web\Services\Description\ProtocolImporter.cs (1)
480XmlFormatExtensionAttribute[] attrs = (XmlFormatExtensionAttribute[])item.GetType().GetCustomAttributes(typeof(XmlFormatExtensionAttribute), false);
System\Web\Services\Description\SchemaCompiler.cs (3)
109item = Res.GetString(Res.XmlSchemaNamedItem, ns, o.GetType() == typeof(XmlSchemaSimpleType) ? "simpleType" : "complexType", ((XmlSchemaType)o).Name, details); 132string itemType = o is XmlSchemaImport ? "import" : o is XmlSchemaInclude ? "include" : o is XmlSchemaRedefine ? "redefine" : o.GetType().Name; 139item = Res.GetString(Res.XmlSchemaNamedItem, ns, o.GetType().Name, null, details);
System\Web\Services\Description\ServiceDescription.cs (7)
1468if (type.IsAssignableFrom(item.GetType())) { 1484if (type.IsAssignableFrom(item.GetType())) { 1796if (Count > 1 || (Count == 1 && value.GetType() == List[0].GetType())) 1807if (oldValue.GetType() != newValue.GetType()) throw new InvalidOperationException(Res.GetString(Res.WebDescriptionTooManyMessages)); 2835throw new ArgumentException(GetDuplicateMessage(value.GetType(), key), e.InnerException);
System\Web\Services\Description\ServiceDescriptionSerializer.cs (88)
21System.Type t = o.GetType(); 110System.Type t = o.GetType(); 165System.Type t = o.GetType(); 233System.Type t = o.GetType(); 255System.Type t = o.GetType(); 277System.Type t = o.GetType(); 299System.Type t = o.GetType(); 375System.Type t = o.GetType(); 452System.Type t = o.GetType(); 516System.Type t = o.GetType(); 555System.Type t = o.GetType(); 594System.Type t = o.GetType(); 676System.Type t = o.GetType(); 705System.Type t = o.GetType(); 765System.Type t = o.GetType(); 794System.Type t = o.GetType(); 833System.Type t = o.GetType(); 855System.Type t = o.GetType(); 878System.Type t = o.GetType(); 909System.Type t = o.GetType(); 940System.Type t = o.GetType(); 973System.Type t = o.GetType(); 1005System.Type t = o.GetType(); 1038System.Type t = o.GetType(); 1070System.Type t = o.GetType(); 1158System.Type t = o.GetType(); 1179System.Type t = o.GetType(); 1200System.Type t = o.GetType(); 1235System.Type t = o.GetType(); 1257System.Type t = o.GetType(); 1295System.Type t = o.GetType(); 1320System.Type t = o.GetType(); 1342System.Type t = o.GetType(); 1367System.Type t = o.GetType(); 1422System.Type t = o.GetType(); 1501System.Type t = o.GetType(); 1549System.Type t = o.GetType(); 1597System.Type t = o.GetType(); 1645System.Type t = o.GetType(); 1700System.Type t = o.GetType(); 1749System.Type t = o.GetType(); 1803System.Type t = o.GetType(); 1909System.Type t = o.GetType(); 1959System.Type t = o.GetType(); 2007System.Type t = o.GetType(); 2054System.Type t = o.GetType(); 2101System.Type t = o.GetType(); 2163System.Type t = o.GetType(); 2210System.Type t = o.GetType(); 2302System.Type t = o.GetType(); 2342System.Type t = o.GetType(); 2375System.Type t = o.GetType(); 2415System.Type t = o.GetType(); 2456System.Type t = o.GetType(); 2506System.Type t = o.GetType(); 2538System.Type t = o.GetType(); 2621System.Type t = o.GetType(); 2655System.Type t = o.GetType(); 2689System.Type t = o.GetType(); 2723System.Type t = o.GetType(); 2757System.Type t = o.GetType(); 2791System.Type t = o.GetType(); 2825System.Type t = o.GetType(); 2859System.Type t = o.GetType(); 2893System.Type t = o.GetType(); 2927System.Type t = o.GetType(); 2961System.Type t = o.GetType(); 2995System.Type t = o.GetType(); 3029System.Type t = o.GetType(); 3108System.Type t = o.GetType(); 3205System.Type t = o.GetType(); 3239System.Type t = o.GetType(); 3302System.Type t = o.GetType(); 3333System.Type t = o.GetType(); 3366System.Type t = o.GetType(); 3406System.Type t = o.GetType(); 3468System.Type t = o.GetType(); 3512System.Type t = o.GetType(); 3584System.Type t = o.GetType(); 3656System.Type t = o.GetType(); 3699System.Type t = o.GetType(); 3804System.Type t = o.GetType(); 3857System.Type t = o.GetType(); 3890System.Type t = o.GetType(); 3943System.Type t = o.GetType(); 3974System.Type t = o.GetType(); 4006System.Type t = o.GetType(); 4066System.Type t = o.GetType();
System\Web\Services\Description\SoapProtocolImporter.cs (4)
401if (soapBinding == null || soapBinding.GetType() != typeof(SoapBinding)) return false; 736UnsupportedOperationWarning(Res.GetString(Res.CodeGenSupportReferenceParameters, ServiceImporter.CodeGenerator.GetType().Name)); 797UnsupportedOperationWarning(Res.GetString(Res.CodeGenSupportParameterAttributes, ServiceImporter.CodeGenerator.GetType().Name)); 825UnsupportedOperationWarning(Res.GetString(Res.CodeGenSupportReturnTypeAttributes, ServiceImporter.CodeGenerator.GetType().Name));
System\Web\Services\Description\WebReferenceOptions.cs (1)
201System.Type t = o.GetType();
System\Web\Services\Description\WebServicesInteroperability.cs (3)
91if (soapBinding == null || soapBinding.GetType() != typeof(SoapBinding)) 522if (soapBinding == null || soapBinding.GetType() != typeof(SoapBinding)) 559if (soapBinding == null || soapBinding.GetType() != typeof(SoapBinding))
System\Web\Services\Diagnostics\TraceUtility.cs (2)
359sb.Append(o.GetType().FullName); 376Type type = o.GetType();
System\Web\Services\Discovery\ContractReference.cs (1)
144document == null ? string.Empty : document.GetType().FullName,
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (3)
353throw new InvalidOperationException(Res.GetString(Res.WebRefInvalidAttribute2, reference.GetType().FullName, "url")); 357throw new InvalidOperationException(Res.GetString(Res.WebRefInvalidAttribute2, reference.GetType().FullName, "filename")); 498results.Results.Add(new DiscoveryClientResult(reference == null ? null : reference.GetType(), url, GetRelativePath(filename, topLevelFullPath)));
System\Web\Services\Discovery\DiscoveryDocumentReference.cs (2)
91document == null ? string.Empty : document.GetType().FullName, 238throw new InvalidOperationException(Res.GetString(Res.WebEmptyRef, r.GetType().FullName, Url));
System\Web\Services\Discovery\DiscoveryDocumentSerializer.cs (5)
21System.Type t = o.GetType(); 66System.Type t = o.GetType(); 86System.Type t = o.GetType(); 105System.Type t = o.GetType(); 125System.Type t = o.GetType();
System\Web\Services\Discovery\SchemaReference.cs (1)
182document == null ? string.Empty : document.GetType().FullName,
System\Web\Services\Protocols\HttpClientProtocol.cs (1)
110Type type = this.GetType();
System\Web\Services\Protocols\LogicalMethodInfo.cs (1)
572if (o.GetType().Namespace == "System.Xml.Serialization") {
System\Web\Services\Protocols\Scalars.cs (2)
25else if (value.GetType().IsEnum) 53return Enum.Format(value.GetType(), value, "G");
System\Web\Services\Protocols\SoapClientProtocol.cs (2)
179Type type = this.GetType(); 198throw new InvalidOperationException(Res.GetString(Res.DiscoveryIsNotPossibleBecauseTypeIsMissing1, this.GetType().FullName));
System\Web\Services\Protocols\SoapHeader.cs (6)
220if (typeof(SoapHeader).IsAssignableFrom(o.GetType())) { 354XmlSerializer headerSerializer = new XmlSerializer(header.GetType(), ns); 401if (mapping.headerType.IsAssignableFrom(header.GetType())) { 413if (mapping.headerType.IsAssignableFrom(header.GetType())) { 468Type headerType = header.GetType(); 492return GetHeaderElementName(header.GetType());
System\Web\Services\Protocols\SoapReflector.cs (1)
301if (client) throw new InvalidOperationException(Res.GetString(Res.WebInvalidBindingPlacement, methodAttr.GetType().Name));
System\Web\Services\Protocols\WebServiceHandlerFactory.cs (1)
98if ((protocol != null && protocol.GetType() != typeof(UnsupportedRequestProtocol)) || abort)
System.Windows.Forms (271)
misc\ClientUtils.cs (1)
134System.Diagnostics.Debug.Assert(Enum.GetValues(enumValue.GetType()).Length == enumValues.Length, "Not all the enum members were passed in.");
misc\GDI\WindowsFont.cs (1)
385return string.Format(CultureInfo.CurrentCulture, "[{0}: Name={1}, Size={2} points, Height={3} pixels, Sytle={4}]", GetType().Name, logFont.lfFaceName, this.Size, this.Height, this.Style);
misc\GDI\WindowsPen.cs (1)
193this.GetType().Name,
misc\GDI\WindowsSolidBrush.cs (1)
67return String.Format( CultureInfo.InvariantCulture, "{0}: Color={1}", this.GetType().Name, this.Color );
parent\parent\parent\public\Internal\NDP\Inc\IsolationInterop.cs (1)
2527System.Type t = o.GetType();
winforms\Managed\System\Resources\ResXDataNode.cs (3)
131Type valueType = (value == null) ? typeof(object) : value.GetType(); 377Type valueType = (value == null) ? typeof(object) : value.GetType(); 635result = MultitargetUtil.GetAssemblyQualifiedName(insideObject.GetType(), this.typeNameConverter);
winforms\Managed\System\WinForms\AxHost.cs (25)
294this.axState[assignUniqueID] = !this.GetType().GUID.Equals(comctlImageCombo_Clsid); 1820throw new TargetInvocationException(SR.GetString(SR.AXNohWnd,GetType().Name), t); 1880throw new NotSupportedException(SR.GetString(SR.AXNohWnd,GetType().Name)); 1945throw new TargetInvocationException(SR.GetString(SR.AXNohWnd,GetType().Name), t); 2598throw new LicenseException(GetType(), this, SR.GetString(SR.AXNoLicenseToUse)); 2722TypeDescriptor.Refresh(this.GetType()); 2820TypeDescriptor.Refresh(this.GetType()); 2877PropertyInfo[] propInfos = this.GetType().GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance); 5049if (o.GetType() == typeof(Single)) { 6370return new MethodInfo[] {this.GetType().GetMethod("Move")}; 6382PropertyInfo prop = GetP().GetType().GetProperty(name, bindingAttr); 6384prop = this.GetType().GetProperty(name, bindingAttr); 6390PropertyInfo prop = GetP().GetType().GetProperty(name, bindingAttr, binder, returnType, types, modifiers); 6392prop = this.GetType().GetProperty(name, bindingAttr, binder, returnType, types, modifiers); 6398PropertyInfo[] extenderProps = this.GetType().GetProperties(bindingAttr); 6399PropertyInfo[] ctlProps = GetP().GetType().GetProperties(bindingAttr); 6424MemberInfo[] memb = GetP().GetType().GetMember(name, bindingAttr); 6426memb = this.GetType().GetMember(name, bindingAttr); 6432MemberInfo[] extenderMembs = this.GetType().GetMembers(bindingAttr); 6433MemberInfo[] ctlMembs = GetP().GetType().GetMembers(bindingAttr); 6454return this.GetType().InvokeMember(name, invokeAttr, binder, target, args, modifiers, culture, namedParameters); 6457return this.GetP().GetType().InvokeMember(name, invokeAttr, binder, GetP(), args, modifiers, culture, namedParameters); 6901if (pVar != null && !pVar.GetType().IsSerializable) { 6902Debug.WriteLineIf(AxHTraceSwitch.TraceVerbose, "\t " + pVar.GetType().FullName + " is not serializable."); 7148if (this.PropertyType.IsEnum && (value.GetType() != this.PropertyType)) {
winforms\Managed\System\WinForms\Binding.cs (12)
511Type controlClass = control.GetType(); 731return Formatter.ParseObject(value, type, (value == null ? propInfo.PropertyType : value.GetType()), fieldInfoConverter, propInfoConverter, formatInfo, nullValue, GetDataSourceNullValue(type)); 743if (e.Value != null && (e.Value.GetType().IsSubclassOf(type) || e.Value.GetType() == type || e.Value is System.DBNull)) 746TypeConverter typeConverter = TypeDescriptor.GetConverter(value != null ? value.GetType() : typeof(Object)); 753if (ret != null && (ret.GetType().IsSubclassOf(type) || ret.GetType() == type)) 813if (ret != null && (ret.GetType().IsSubclassOf(type) || ret.GetType() == type)) 816TypeConverter typeConverter = TypeDescriptor.GetConverter(value != null ? value.GetType() : typeof(Object)); 824if (ret != null && (ret.GetType().IsSubclassOf(type) || ret.GetType() == type))
winforms\Managed\System\WinForms\BindingSource.cs (4)
844list = CreateBindingList(item.GetType()); 1372IList list = CreateBindingList(obj.GetType()); 1645SetList(CreateBindingList((value == null) ? typeof(object) : value.GetType()), true, true); 1649if (value != null && !itemType.IsAssignableFrom(value.GetType())) {
winforms\Managed\System\WinForms\ButtonInternal\CheckableControlBaseAdapter.cs (1)
61Debug.Fail("Unexpected control type '" + Control.GetType().FullName + "'");
winforms\Managed\System\WinForms\ColumnHeader.cs (1)
433Type clonedType = this.GetType();
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ColorConverter.cs (1)
71Debug.Fail("Don't know how to set type:" + managedValue.GetType().Name);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Enum.cs (3)
156if (values.Length > 0 && v.GetType() != values[0].GetType()) { 158v = Convert.ChangeType(v, values[0].GetType(), CultureInfo.InvariantCulture);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (1)
164if (pis.Length == 1 && pis[0].ParameterType.IsAssignableFrom(varParams[i].GetType())) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
293if (valueItems[i].GetType() != targetType) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
123Debug.Fail("Unknown Image type: " + managedValue.GetType().Name);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (3)
928else if (lastValue != null && propertyType != null && propertyType.IsEnum && lastValue.GetType().IsPrimitive) { 971editorType = value.GetType(); 1001Type localConverterType = localConverter.GetType();
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (2)
56if (!instance.GetType().IsArray) { 90object[] objs = component.GetType().IsArray ? (object[])component : new object[]{component};
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (2)
853enumType = vars[0].GetType(); 1136Type t = str.GetType();
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (4)
134return TypeDescriptor.GetEditor(component.GetType(), baseEditorType); 240if (obj == null || !obj.GetType().IsCOMObject) { 451Type t = curValue.GetType(); 453if (subConverter != null && subConverter.GetType() != typeof(TypeConverter)){
winforms\Managed\System\WinForms\Control.cs (33)
4433Exception ex = new System.ObjectDisposedException(GetType().Name); 5780throw new System.ObjectDisposedException(GetType().Name); 5967Exception ex = new System.ObjectDisposedException(GetType().Name); 8730if (DpiHelper.EnableDpiChangedMessageHandling && !(typeof(Form).IsAssignableFrom(this.GetType()))) { 11577Debug.WriteLineIf(CompModSwitches.RichLayout.TraceInfo, GetType().Name + "::ScaleCore(" + dx + ", " + dy + ")"); 12636if (this.GetType().IsAssignableFrom(typeof(TabControl))) { 13021string type = GetType().AssemblyQualifiedName; 13030Debug.WriteLineIf(CompModSwitches.MSAA.TraceInfo, "In WmGetObject, this = " + this.GetType().FullName + ", lParam = " + m.LParam.ToString()); 15603pClsid = GetType().GUID; 15615userType = GetType().FullName; 15618userType = GetType().Name; 15737pClassID = GetType().GUID; 15754pClassID = GetType().GUID; 15785pClassID = GetType().GUID; 15850pClassID = GetType().GUID; 16335Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "Object color type=" + obj.GetType().FullName); 16372Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "Object font type=" + obj.GetType().FullName); 16417Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "Object color type=" + obj.GetType().FullName); 16841Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "IDispatch::Invoke succeeded. VT=" + pvt[0].GetType().FullName); 16994string streamName = control.GetType().FullName; 17270stream = stg.OpenStream(GetType().FullName, IntPtr.Zero, NativeMethods.STGM_READ | NativeMethods.STGM_SHARE_EXCLUSIVE, 0); 17334if (obj.GetType() != typeof(string)) { 17360Debug.Assert(converter != null, "No type converter for property '" + props[i].Name + "' on class " + control.GetType().FullName); 17393err.bstrSource = control.GetType().FullName; 17684Type eventInterface = GetDefaultEventsInterface(control.GetType()); 18054Debug.Assert(converter != null, "No type converter for property '" + props[i].Name + "' on class " + control.GetType().FullName); 18890else if (clientSite.GetType().IsAssignableFrom(service)) { 20148object[] attrs = owner.GetType().Module.Assembly.GetCustomAttributes(typeof(AssemblyCompanyAttribute), false); 20161string ns = owner.GetType().Namespace; 20190object[] attrs = owner.GetType().Module.Assembly.GetCustomAttributes(typeof(AssemblyProductAttribute), false); 20203string ns = owner.GetType().Namespace; 20233object[] attrs = owner.GetType().Module.Assembly.GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), false); 20274path = owner.GetType().Module.FullyQualifiedName;
winforms\Managed\System\WinForms\Control.Ime.cs (1)
117Debug.WriteLineIf( CompModSwitches.ImeMode.Level >= TraceLevel.Verbose, "inherited from parent = " + parent.GetType() );
winforms\Managed\System\WinForms\CurrencyManager.cs (3)
188finalType = tempList.GetType(); 198finalType = tempList.GetType(); 214throw new ArgumentException(SR.GetString(SR.ListManagerSetDataSource, tempList.GetType().FullName), "dataSource");
winforms\Managed\System\WinForms\Cursor.cs (1)
245throw new ObjectDisposedException(SR.GetString(SR.ObjectDisposed, GetType().Name));
winforms\Managed\System\WinForms\DataGridDefaultColumnWidthTypeConverter.cs (3)
42if (value.GetType() == typeof(int)) 65if (value.GetType() == typeof(string)) 73else if (value.GetType() == typeof(int))
winforms\Managed\System\WinForms\DataGridViewBand.cs (1)
895DataGridViewBand dataGridViewBand = (DataGridViewBand) System.Activator.CreateInstance(this.GetType());
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
189Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (1)
204Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewCell.cs (6)
1173DataGridViewCell dataGridViewCell = (DataGridViewCell) System.Activator.CreateInstance(this.GetType()); 1906(formattedValue == null || !this.FormattedValueType.IsAssignableFrom(formattedValue.GetType()))) 1940(formattedValue == null || this.FormattedValueType == null || !this.FormattedValueType.IsAssignableFrom(formattedValue.GetType()))) 4470!this.FormattedValueType.IsAssignableFrom(formattedValue.GetType())) 4796return this.owner.GetType().Name + "(" + owner.GetType().BaseType.Name + ")";
winforms\Managed\System\WinForms\DataGridViewCellConverter.cs (1)
35ConstructorInfo ctor = cell.GetType().GetConstructor(new Type[0]);
winforms\Managed\System\WinForms\DataGridViewCellStyleConverter.cs (1)
53ConstructorInfo ctor = value.GetType().GetConstructor(new Type[0]);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (3)
82if (value == null || !this.FormattedValueType.IsAssignableFrom(value.GetType())) 486Type thisType = this.GetType(); 1639Debug.Assert(formattedValue == null || this.FormattedValueType == null || this.FormattedValueType.IsAssignableFrom(formattedValue.GetType()));
winforms\Managed\System\WinForms\DataGridViewColumn.cs (2)
227return this.cellTemplate.GetType(); 1105DataGridViewColumn dataGridViewColumn = (DataGridViewColumn) System.Activator.CreateInstance(this.GetType());
winforms\Managed\System\WinForms\DataGridViewColumnConverter.cs (2)
51ctor = dataGridViewColumn.GetType().GetConstructor(new Type[] { typeof(Type) }); 59ctor = dataGridViewColumn.GetType().GetConstructor(new Type[0]);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (1)
115Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
860Type thisType = this.GetType(); 1148if (value == null || ((this.ValueType != null && !this.ValueType.IsAssignableFrom(value.GetType())) && value != System.DBNull.Value))
winforms\Managed\System\WinForms\DataGridViewComboBoxColumn.cs (1)
499Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (1)
1577Type valueType = value.GetType();
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
290Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
280Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (1)
283Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
484Type thisType = this.GetType ();
winforms\Managed\System\WinForms\DataGridViewLinkColumn.cs (1)
365Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewMethods.cs (6)
2632Type editingCellInterface = dataGridViewCell.GetType().GetInterface("System.Windows.Forms.IDataGridViewEditingCell"); 2665Type editingCellInterface = dataGridViewCell.GetType().GetInterface("System.Windows.Forms.IDataGridViewEditingCell"); 2696!this.latestEditingControl.GetType().IsSubclassOf(editControlType)) 22326editingCellInterface = dataGridViewCell.GetType().GetInterface("System.Windows.Forms.IDataGridViewEditingCell"); 25465(dataGridViewCurrentCell.FormattedValueType != null && dataGridViewCurrentCell.FormattedValueType.IsAssignableFrom(nullValue.GetType()))) 25524dataGridViewCurrentCell.ValueType.IsAssignableFrom(dgvcpe.Value.GetType()))
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
1123Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewRowConverter.cs (1)
48ConstructorInfo ctor = dataGridViewRow.GetType().GetConstructor(new Type[0]);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
158Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
151Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataObject.cs (3)
914|| (data != null && data.GetType().IsSerializable)) { 1966SetData(data.GetType(), data); 2198SetData(data.GetType(), data);
winforms\Managed\System\WinForms\Design\PropertyTab.cs (3)
43string bmpName = GetType().Name + ".bmp"; 46bitmap = new Bitmap(GetType(), bmpName); 50Debug.Fail("Failed to find bitmap '" + bmpName + "' for class " + GetType().FullName, ex.ToString());
winforms\Managed\System\WinForms\Form.cs (5)
5786Debug.WriteLineIf(CompModSwitches.RichLayout.TraceInfo, GetType().Name + "::ScaleCore(" + x + ", " + y + ")"); 6636Type closestMatchingSourceType = FindClosestStockType(sourceToolStrip.GetType()); 6638Type closestMatchingTargetType = FindClosestStockType(thisToolstrip.GetType()); 6641thisToolstrip.GetType().IsAssignableFrom(sourceToolStrip.GetType())) {
winforms\Managed\System\WinForms\Formatter.cs (3)
134Type sourceType = value.GetType(); 309else if (value != null && targetType.IsAssignableFrom(value.GetType())) { 450Object.Equals(value, NullData(value.GetType(), dataSourceNullValue));
winforms\Managed\System\WinForms\Help.cs (2)
253Debug.Fail("Cannot handle HTML parameter of type: " + htmlParam.GetType()); 263else if (param.GetType() == typeof(Int32)) {
winforms\Managed\System\WinForms\HtmlHistory.cs (1)
42throw new System.ObjectDisposedException(GetType().Name);
winforms\Managed\System\WinForms\Layout\LayoutEngine.cs (1)
23throw new NotSupportedException(SR.GetString(SR.LayoutEngineUnsupportedType, obj.GetType()));
winforms\Managed\System\WinForms\ListBindingHelper.cs (4)
118type = list.GetType(); 243Type listType = (list is Type) ? (list as Type) : list.GetType(); 460return (instance != null) ? instance.GetType() : typeof(object); 575Type targetType = enumerable.GetType();
winforms\Managed\System\WinForms\ListViewItem.cs (1)
982Type clonedType = this.GetType();
winforms\Managed\System\WinForms\MenuItem.cs (4)
1158MenuItem sep = (MenuItem)Activator.CreateInstance(this.GetType()); 1185MenuItem windowItem = (MenuItem)Activator.CreateInstance(this.GetType()); 1206MenuItem moreWindows = (MenuItem)Activator.CreateInstance(this.GetType()); 1229MenuItem newItem = (MenuItem)Activator.CreateInstance(this.GetType());
winforms\Managed\System\WinForms\MonthCalendar.cs (2)
2673return calendar.GetType().Name + "(" + calendar.GetType().BaseType.Name + ")";
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4301Type t = var.GetType();
winforms\Managed\System\WinForms\NativeWindow.cs (1)
775Debug.WriteLineIf(CoreSwitches.PerfTrack.Enabled, "Handle created of type '" + cp.ClassName + "' with caption '" + cp.Caption + "' from NativeWindow of type '" + GetType().FullName + "'");
winforms\Managed\System\WinForms\PropertyGrid.cs (19)
1189throw new NotSupportedException(SR.GetString(SR.PropertyGridRemotedObject, value[count].GetType().FullName)); 1207Type oldType = GetUnwrappedObject(i).GetType(); 1214Type newType = objTemp.GetType(); 1271Type tabType = selectedViewTab == -1 ? null : viewTabs[selectedViewTab].GetType(); 1277if (viewTabs[i].GetType() == tabType && viewTabButtons[i].Visible) { 1307Type objType = tempObj.GetType(); 1847if (tabType == viewTabs[i].GetType()) { 2061throw new ArgumentException(SR.GetString(SR.PropertyGridNoBitmap, tab.GetType().FullName)); 2072throw new ArgumentException(SR.GetString(SR.PropertyGridTabName, tab.GetType().FullName)); 2812PropertyTabAttribute attribute = (PropertyTabAttribute) TypeDescriptor.GetAttributes(e.Component.GetType())[typeof(PropertyTabAttribute)]; 2848PropertyTabAttribute attribute = (PropertyTabAttribute) TypeDescriptor.GetAttributes(e.Component.GetType())[typeof(PropertyTabAttribute)]; 3462if (currentObjects[i] == e.ComponentChanged || typeChanged != null && typeChanged.IsAssignableFrom(currentObjects[i].GetType())) { 3959PropertyTabAttribute attribute = (PropertyTabAttribute) TypeDescriptor.GetAttributes(comp.GetType())[typeof(PropertyTabAttribute)]; 3980if (tabType == viewTabs[i].GetType()) { 4132if (tabType == viewTabs[i].GetType()) { 4191Debug.Assert(oldObject != null && newObject != null && oldObject.GetType() == newObject.GetType()); 4301Debug.Assert(viewTabs[PROPERTIES].GetType() == DefaultTabType, "First item is not property tab!"); 5006if (viewTabs[i].GetType().FullName == tabTypeName && viewTabButtons[i].Visible) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (4)
944return obj.GetType(); 1799UInt32 h3 = (UInt32)GetType().GetHashCode(); 2650return GetType().FullName + " " + this.PropertyLabel; 3137Debug.Fail("Attribute '" + a.GetType().FullName + "' does not have a typeid.");
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
210Debug.Fail("TTM_ADDTOOL failed for " + c.GetType().Name);
winforms\Managed\System\WinForms\PropertyGridInternal\MergePropertyDescriptor.cs (1)
181Type type = value.GetType();
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (6)
127if (ge.PropertyValue == owner || (owner.GetType().IsValueType && owner.GetType() == ge.PropertyValue.GetType())) { 149Type ownerType = owner.GetType(); 486bool isValueType = owner.GetType().IsValueType; 928string compName = component.Site != null ? component.Site.Name : component.GetType().Name;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (9)
1234propType = entry.PropertyValue.GetType(); 1239", TypeConverter=" + (entry.TypeConverter == null ? "(null)" : entry.TypeConverter.GetType().FullName) + ", UITypeEditor=" + ((entry.UITypeEditor == null ? "(null)" : entry.UITypeEditor.GetType().FullName))); 1680Debug.WriteLineIf(GridViewDebugPaint.TraceVerbose, "DropDownControl(ctl = " + ctl.GetType().Name + ")"); 2686if (value != null && rgvalue != null && value.GetType() != rgvalue.GetType() && gridEntry.TypeConverter.CanConvertTo(gridEntry, value.GetType())) { 2687rgvalue = gridEntry.TypeConverter.ConvertTo(gridEntry, CultureInfo.CurrentCulture, rgvalue, value.GetType()); 5977Debug.WriteLineIf(CompModSwitches.DebugGridView.TraceVerbose, "DropDownHolder:SetComponent(" + (ctl.GetType().Name) + ")");
winforms\Managed\System\WinForms\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
205return objValue.GetType().Name;
winforms\Managed\System\WinForms\PropertyManager.cs (1)
82return dataSource.GetType();
winforms\Managed\System\WinForms\Screen.cs (1)
482return GetType().Name + "[Bounds=" + bounds.ToString() + " WorkingArea=" + WorkingArea.ToString() + " Primary=" + primary.ToString() + " DeviceName=" + deviceName;
winforms\Managed\System\WinForms\ScrollableControl.cs (2)
420Debug.WriteLineIf(CompModSwitches.RichLayout.TraceInfo, GetType().Name + "::ApplyScrollbarChanges(" + display + ") {"); 906Debug.WriteLineIf(ScrollableControl.AutoScrolling.TraceVerbose, "ScrollControlIntoView(" + activeControl.GetType().FullName + ")");
winforms\Managed\System\WinForms\TabControl.cs (1)
2735throw new ArgumentException(SR.GetString(SR.TabControlInvalidTabPageType, value.GetType().Name));
winforms\Managed\System\WinForms\TableLayoutSettings.cs (2)
690style.GetType().GetConstructor(new Type[] {}), 695style.GetType().GetConstructor(new Type[] {typeof(SizeType), typeof(int)}),
winforms\Managed\System\WinForms\TableLayoutStyleCollection.cs (1)
125throw new ArgumentException(SR.GetString(SR.OnlyOneControl, style.GetType().Name), "style");
winforms\Managed\System\WinForms\TabPage.cs (1)
533throw new ArgumentException (SR.GetString (SR.TABCONTROLTabPageNotOnTabControl, value.GetType ().FullName));
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (4)
319expandImage = new Bitmap(this.GetType(), DownBitmapName); 321collapseImage = new Bitmap(this.GetType(), UpBitmapName); 365expandImage = new Bitmap(this.GetType(), DownBitmapName); 371collapseImage = new Bitmap(this.GetType(), UpBitmapName);
winforms\Managed\System\WinForms\Timer.cs (1)
327cp.Caption = GetType().Name;
winforms\Managed\System\WinForms\ToolBar.cs (1)
1547if ((menu.GetType()).IsAssignableFrom(typeof(ContextMenu))) {
winforms\Managed\System\WinForms\ToolStrip.cs (1)
1704currentRendererType = (renderer != null) ? renderer.GetType() : typeof(System.Type);
winforms\Managed\System\WinForms\ToolStripContainer.cs (2)
463Type controlType = value.GetType(); 465throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.TypedControlCollectionShouldBeOfTypes, contentPanelType.Name, panelType.Name)), value.GetType().Name);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
1694Debug.WriteLineIf(CompModSwitches.RichLayout.TraceInfo, GetType().Name + "::ScaleCore(" + dx + ", " + dy + ")");
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
760if (typeof(ToolStripDropDownItem).IsAssignableFrom(childItem.GetType())) {
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (1)
213typeof(ToolStripButton).IsAssignableFrom(e.Item.GetType()) &&
winforms\Managed\System\WinForms\ToolStripManager.cs (13)
487CurrentRendererType = (value == null) ? DefaultRendererType : value.GetType(); 661LoadSettings(targetForm, targetForm.GetType().FullName); 689SaveSettings(sourceForm, sourceForm.GetType().FullName); 1894(sourceToolStrip.GetType().IsAssignableFrom(targetToolStrip.GetType()) || targetToolStrip.GetType().IsAssignableFrom(sourceToolStrip.GetType())) 2194if (x.GetType() == y.GetType()) { 2197if (x.GetType().IsAssignableFrom(y.GetType())) { 2200if (y.GetType().IsAssignableFrom(x.GetType())) {
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
58throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.TypedControlCollectionShouldBeOfType, typeof(ToolStrip).Name)), control.GetType().Name);
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (1)
2304Debug.Assert(cell != null, "Expected ToolStripPanel cells only!!!" + arrayListEnumerator.Current.GetType().ToString());
winforms\Managed\System\WinForms\ToolStripRendererSwitcher.cs (1)
67currentRendererType = (renderer != null) ? renderer.GetType() : typeof(System.Type);
winforms\Managed\System\WinForms\ToolStripSettings.cs (1)
301if (baseType.IsAssignableFrom(controlsToLookIn[i].GetType())) {
winforms\Managed\System\WinForms\TreeNode.cs (3)
1263Type clonedType = this.GetType(); 1882if (userData != null && userData.GetType().IsSerializable) { 1883si.AddValue("UserData", userData, userData.GetType());
winforms\Managed\System\WinForms\TrustManager.cs (1)
224elRoot.AddAttribute("class", SecurityElement.Escape(this.GetType().AssemblyQualifiedName));
winforms\Managed\System\WinForms\UpDownBase.cs (2)
737return this.GetType().Name; 1826return Owner.ParentInternal.GetType().Name;
winforms\Managed\System\WinForms\WebBrowser.cs (2)
509Type t = value.GetType(); 1670throw new System.ObjectDisposedException(GetType().Name);
winforms\Managed\System\WinForms\WebBrowserBase.cs (2)
1015throw new TargetInvocationException(SR.GetString(SR.AXNohWnd, GetType().Name), t); 1054throw new TargetInvocationException(SR.GetString(SR.AXNohWnd, GetType().Name), t);
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (1)
139if (currentContext == null || currentContext.GetType() == typeof(SynchronizationContext)) {
winforms\Managed\System\WinForms\WinFormsUtils.cs (2)
560if (!typeOfControl.IsAssignableFrom(value.GetType())) { 561throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.TypedControlCollectionShouldBeOfType, typeOfControl.Name)), value.GetType().Name);
System.Windows.Forms.DataVisualization (64)
Common\Borders3D\Borders3D.cs (1)
642 if(registeredBorderTypes[name].GetType() == borderType)
Common\ChartTypes\ChartTypeRegistry.cs (1)
172 if(registeredChartTypes[name].GetType() == chartType)
Common\Converters\AxisConverters.cs (6)
77 PropertyInfo propertyInfo = context.Instance.GetType().GetProperty("IntervalType"); 84 propertyInfo = context.Instance.GetType().GetProperty("Interval"); 101 MethodInfo methodInfo = context.Instance.GetType().GetMethod("GetAxis"); 117 if(context.Instance.GetType() != typeof(StripLine) || interval == 0) 153 PropertyInfo propertyInfo = context.Instance.GetType().GetProperty("intervalType"); 170 MethodInfo methodInfo = context.Instance.GetType().GetMethod("GetAxis");
Common\Converters\CustomAttributesConverters.cs (6)
394if (attrInfo.DefaultValue.GetType() == attrInfo.ValueType) 638 if(this._customAttributeInfo.ValueType == obj.GetType() ) 737 if(value.GetType() != this._customAttributeInfo.MaxValue.GetType()) 773 if(value.GetType() != this._customAttributeInfo.MinValue.GetType())
Common\Converters\DataManagerConverters.cs (2)
407 MethodInfo methodInfo = context.Instance.GetType().GetMethod("GetService"); 425throw (new InvalidOperationException(SR.ExceptionEditorChartTypeRegistryServiceInObjectInaccessible(context.Instance.GetType().ToString())));
Common\DataManager\DataPoint.cs (8)
436if (enumerator.GetType() != typeof(System.Data.Common.DbEnumerator)) 635 if(xEnumerator.GetType() != typeof(System.Data.Common.DbEnumerator)) 644 if(yEnumerator[i].GetType() != typeof(System.Data.Common.DbEnumerator)) 806 if(yEnumerator.GetType() != typeof(System.Data.Common.DbEnumerator)) 816 if(xEnumerator.GetType() != typeof(System.Data.Common.DbEnumerator)) 1505columnDataType = enumerator.Current.GetType(); 2103 Type paramType = xValue.GetType(); 2204 Type paramType = yValue[0].GetType();
Common\Formulas\FormulaRegistry.cs (1)
73 if(registeredModules[name].GetType() == moduleType)
Common\General\BaseClasses.cs (2)
196return GetType().Name; 350string typeName = GetType().Name;
Common\General\BaseCollections.cs (6)
308throw new ArgumentException(SR.ExceptionNameNotFound(name, this.GetType().Name)); 324throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(name, this.GetType().Name)); 327throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(name, this.GetType().Name)); 412throw new ArgumentException(SR.ExceptionNameNotFound(name, this.GetType().Name)); 451throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(item.Name, this.GetType().Name)); 475throw new ArgumentException(SR.ExceptionNameAlreadyExistsInCollection(item.Name, this.GetType().Name));
Common\General\Chart.cs (6)
410 dataSource.GetType().GetInterface("IDataSource") != null 437if (dataSource.GetType().GetInterface("IDataSource") != null) 441MethodInfo m = dataSource.GetType().GetMethod("Select"); 447Type selectArgsType = dataSource.GetType().Assembly.GetType("System.Web.UI.DataSourceSelectArguments", true); 746 if(enumerator.GetType() != typeof(System.Data.Common.DbEnumerator) ) 1146 if(enumerator.GetType() != typeof(System.Data.Common.DbEnumerator))
Common\General\DataManipulator.cs (2)
292 if(obj.GetType() == typeof(Series)) 299 else if(obj.GetType() == typeof(string))
Common\Utilities\XmlSerializer.cs (22)
365 PropertyInfo[] properties = objectToReset.GetType().GetProperties(); 404 MethodInfo mi = objectToReset.GetType().GetMethod("Reset" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); 473MethodInfo mi = objectToReset.GetType().GetMethod("Reset" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); 638 Type currentType = objectToSerialize.GetType(); 732string name = obj.GetType().ToString(); 755 PropertyInfo pi = list.GetType().GetProperty("Item", itemType, new Type[] {typeof(string)} ); 756MethodInfo mi = list.GetType().GetMethod("IndexOf", new Type[] { typeof(String) }); 1503PropertyInfo[] properties = objectToSerialize.GetType().GetProperties(); 1550 MethodInfo mi = objectToSerialize.GetType().GetMethod("ShouldSerialize" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public ); 1719MethodInfo mi = parent.GetType().GetMethod("ShouldSerialize" + elementName, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); 2132throw (new InvalidOperationException(SR.ExceptionChartSerializerPropertyNameUnknown(childNode.Name, objectToDeserialize.GetType().ToString()))); 2150 PropertyInfo pi = obj.GetType().GetProperty(attrName); 2202 throw(new InvalidOperationException(SR.ExceptionChartSerializerPropertyNameUnknown( attrName,obj.GetType().ToString()))); 2366 PropertyInfo[] properties = objectToSerialize.GetType().GetProperties(); 2400MethodInfo mi = objectToSerialize.GetType().GetMethod("ShouldSerialize" + pi.Name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); 2615 MethodInfo mi = parent.GetType().GetMethod("ShouldSerialize" + elementName, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public ); 2681 else if(obj.GetType().IsEnum) 2788throw (new InvalidOperationException(SR.ExceptionChartSerializerBinaryTypeUnsupported(obj.GetType().ToString()))); 2960PropertyInfo listItemPI = objectToDeserialize.GetType().GetProperty("Item", new Type[] { typeof(int) }); 3019 PropertyInfo[] properties = objectToDeserialize.GetType().GetProperties(); 3051 throw(new InvalidOperationException(SR.ExceptionChartSerializerPropertyNameUnknown( pi.Name,objectToDeserialize.GetType().ToString()))); 3201 throw(new InvalidOperationException(SR.ExceptionChartSerializerBinaryTypeUnsupported( obj.GetType().ToString() )));
WinForm\ChartWinControl.cs (1)
250 serviceContainer.AddService(_printingManager.GetType(), _printingManager); // Printing manager service
System.Workflow.Activities (334)
Common\BasePropertyDescriptor.cs (6)
43if (site == null && component.GetType().IsArray && (component as object[]).Length > 0 && (component as object[])[0] is IComponent) 74Type ownerType = owner.GetType(); 275if (string.Equals(this.realPropertyDescriptor.GetType().FullName, "System.ComponentModel.Design.InheritedPropertyDescriptor", StringComparison.Ordinal)) 563MemberInfo memberInfo = component.GetType().GetProperty("ParameterBindings", BindingFlags.GetProperty | BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.ExactBinding, null, typeof(WorkflowParameterBindingCollection), new Type[] { }, new ParameterModifier[] { }); 565retVal = component.GetType().InvokeMember("ParameterBindings", BindingFlags.GetProperty | BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.ExactBinding, null, component, new object[] { }, CultureInfo.InvariantCulture) as WorkflowParameterBindingCollection; 640string baseConverterTypeName = baseTypeConverter.GetType().FullName;
Common\CompModHelpers.cs (5)
387string baseIdentifier = activity.GetType().Name; 441return activity.GetType(); 1052CompositeActivity activity = Activator.CreateInstance(compositeActivity.GetType()) as CompositeActivity; 1199Activity newCustomActivity = Activator.CreateInstance(declaringActivity.GetType()) as Activity; 1288isAlternateFlowActivityAttribute = activity.GetType().GetCustomAttributes(typeof(AlternateFlowActivityAttribute), true).Length != 0;
Common\ValidationHelpers.cs (1)
194Type objType = obj.GetType();
Common\Walker.cs (4)
191PropertyInfo[] props = obj.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance); 206DependencyProperty dependencyProperty = DependencyProperty.FromName(prop.Name, obj.GetType()); 250if (childObj != null && IsBrowsableType(childObj.GetType())) 257else if (propValue != null && IsBrowsableType(propValue.GetType()))
ConstrainedGroup.cs (1)
824return new ValidationError(SR.GetString(SR.Error_DynamicActivity2, activity.QualifiedName, activity.ExecutionStatus, activity.GetType().FullName), ErrorNumbers.Error_DynamicActivity2);
Designers\CAGDesigner.cs (1)
33if (extenderProvider.GetType() == typeof(ConditionPropertyProviderExtender))
Designers\EventDrivenDesigner.cs (2)
26if (!(Type.GetType("System.Workflow.Activities.ListenActivity," + AssemblyRef.ActivitiesAssemblyRef).IsAssignableFrom(parentActivityDesigner.Activity.GetType())) && 28!(Type.GetType("System.Workflow.Activities.StateActivity," + AssemblyRef.ActivitiesAssemblyRef).IsAssignableFrom(parentActivityDesigner.Activity.GetType())))
Designers\InvokeWebServiceDesigner.cs (1)
76properties["URL"] = new WebServiceUrlPropertyDescriptor(Activity.Site, TypeDescriptor.CreateProperty(this.GetType(), "URL", typeof(string), DesignOnlyAttribute.Yes, MergablePropertyAttribute.No));
Designers\ParallelDesigner.cs (1)
55if (activity.GetType() != typeof(SequenceActivity))
Designers\StateDesigner.cs (4)
113if (extenderProvider.GetType() == typeof(StateDesignerPropertyExtender)) 281text = this.Activity.GetType().Name; 1968child.GetType().Name)); 2268image = ActivityToolboxItem.GetToolboxImage(designer.Activity.GetType());
EventHandlingScope.cs (3)
234validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MoreThanOneEventHandlersDecl, compositeActivity.GetType().Name), ErrorNumbers.Error_ScopeMoreThanOneEventHandlersDecl)); 250return new ValidationError(SR.GetString(SR.Error_DynamicActivity2, activity.QualifiedName, Enum.GetName(typeof(ActivityExecutionStatus), activity.ExecutionStatus), activity.GetType().FullName), ErrorNumbers.Error_DynamicActivity2); 254return new ValidationError(SR.GetString(SR.Error_DynamicActivity3, activity.QualifiedName, Enum.GetName(typeof(ActivityExecutionStatus), activity.ExecutionStatus), activity.GetType().FullName), ErrorNumbers.Error_DynamicActivity2);
EventSinkActivity.cs (1)
457if (this.GetType() != typeof(HandleExternalEventActivity))
Executors\InboundActivityHelper.cs (2)
107DependencyProperty dependencyProperty = DependencyProperty.FromName("Roles", activity.GetType().BaseType); 109dependencyProperty = DependencyProperty.FromName("Roles", activity.GetType());
Executors\InvokeBase.cs (1)
89if (source == null || source.GetType().IsValueType)
InvokeMethodActivity.cs (1)
258if (this.GetType() != typeof(CallExternalMethodActivity))
InvokeSchedule.cs (1)
289validationError.PropertyName = ParameterInfoBasedPropertyDescriptor.GetParameterPropertyName(invokeWorkflow.GetType(), paramBinding.ParameterName);
InvokeWebService.cs (2)
483validationError.PropertyName = ParameterInfoBasedPropertyDescriptor.GetParameterPropertyName(invokeWebService.GetType(), paramName); 500validationError.PropertyName = ParameterInfoBasedPropertyDescriptor.GetParameterPropertyName(invokeWebService.GetType(), paramName);
LocalService\CorrelationResolver.cs (1)
160Type type = arg.GetType();
LocalService\CorrelationService.cs (2)
168DependencyProperty dependencyProperty = DependencyProperty.FromName("CorrelationToken", activity.GetType()); 170dependencyProperty = DependencyProperty.FromName("CorrelationToken", activity.GetType().BaseType);
LocalService\ExternalDataExchangeService.cs (3)
259if (serviceType.IsAssignableFrom(service.GetType())) 273Type[] interfaceTypes = service.GetType().GetInterfaces(); 321Type serviceType = addedservice.GetType();
LocalService\MethodMessage.cs (1)
173if (source == null || source.GetType().IsValueType)
Parallel.cs (1)
212if (activity.GetType() != typeof(SequenceActivity))
Rules\ArithmeticLiteral.cs (122)
442string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 443throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 447string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 448throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 452string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 453throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 457string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 458throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 462string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 463throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 467string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 468throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 472string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 473throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 477string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 478throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 482string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 483throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 487string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 488throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 492string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 493throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 508string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 509throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 513string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 514throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 518string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 519throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 523string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 524throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 528string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 529throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 533string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 534throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 538string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 539throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 543string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 544throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 559string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 560throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 564string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 565throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 569string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 570throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 574string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 575throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 579string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 580throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 584string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 585throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 589string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 590throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 594string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 595throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 610string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 611throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 615string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 616throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 620string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 621throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 625string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 626throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 630string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 631throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 635string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 636throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 640string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 641throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 645string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 646throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 661string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 662throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 666string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 667throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 671string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 672throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 676string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 677throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 681string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 682throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 686string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 687throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 691string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 692throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 696string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 697throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 712string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 713throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 717string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 718throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 722string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 723throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 727string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 728throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 732string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 733throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 737string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 738throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 742string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 743throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 747string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 748throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 752string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 753throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 768string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 769throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 773string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 774throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 778string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 779throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 783string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 784throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 788string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 789throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 793string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 794throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 798string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 799throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 803string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 804throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 808string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 809throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type);
Rules\CodeDomDecompiler.cs (2)
24Type primitiveType = primitiveValue.GetType(); 496if (precedenceMap.TryGetValue(expression.GetType(), out computePrecedence))
Rules\Design\Dialogs\BasicBrowserDialog.cs (1)
123helpService.ShowHelpFromKeyword(this.GetType().FullName + ".UI");
Rules\Design\Dialogs\RuleConditionDialog.cs (1)
165helpService.ShowHelpFromKeyword(this.GetType().FullName + ".UI");
Rules\Design\Dialogs\RuleSetDialog.cs (1)
568helpService.ShowHelpFromKeyword(this.GetType().FullName + ".UI");
Rules\Design\LogicalExpressionTypeConverter.cs (1)
42return ConditionHelper.GetRuleDefinitionsFromManifest(declaring.GetType());
Rules\Executor.cs (3)
213if (validation.ThisType != thisObject.GetType()) 217RuleDecompiler.DecompileType(thisObject.GetType()))); 819Type currentType = operandValue.GetType();
Rules\Expressions.cs (11)
126Type resultType = (primitiveExpr.Value != null) ? primitiveExpr.Value.GetType() : typeof(NullLiteral); 212message = string.Format(CultureInfo.CurrentCulture, Messages.CodeExpressionNotHandled, binaryExpr.Left.GetType().FullName); 233message = string.Format(CultureInfo.CurrentCulture, Messages.CodeExpressionNotHandled, binaryExpr.Right.GetType().FullName); 754if (rhsValue.GetType() == typeof(bool) && (bool)rhsValue == false) 810TypeCode tc = Type.GetTypeCode(lhsValue.GetType()); 1344message = string.Format(CultureInfo.CurrentCulture, Messages.CodeExpressionNotHandled, argExpr.GetType().FullName); 1750string message = string.Format(CultureInfo.CurrentCulture, Messages.CodeExpressionNotHandled, directionExpr.Expression.GetType().FullName); 2012message = string.Format(CultureInfo.CurrentCulture, Messages.CodeExpressionNotHandled, castExpr.Expression.GetType().FullName); 2341message = string.Format(CultureInfo.CurrentCulture, Messages.CodeExpressionNotHandled, argExpr.GetType().FullName); 2735message = string.Format(CultureInfo.CurrentCulture, Messages.CodeExpressionNotHandled, argExpr.GetType().FullName); 3338size = (double)Executor.AdjustType(prim.Value.GetType(), prim.Value, typeof(double));
Rules\Helpers.cs (5)
47contextType = typeProvider.GetType(rootActivity.GetType().FullName); 51contextType = rootActivity.GetType(); 82if (original.GetType().IsValueType) 89string message = string.Format(CultureInfo.CurrentCulture, Messages.NotCloneable, original.GetType().FullName); 181rules = ConditionHelper.GetRuleDefinitionsFromManifest(declaringActivity.GetType());
Rules\Literal.cs (114)
152RuleDecompiler.DecompileType(literalValue.GetType()), 156literalValue.GetType(), 1025string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1026throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1030string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1031throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1035string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1036throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1040string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1041throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1045string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1046throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1050string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1051throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1055string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1056throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1060string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1061throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1065string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1066throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1070string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1071throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1075string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1076throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1080string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1081throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1085string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1086throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1090string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1091throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1106string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1107throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1111string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1112throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1116string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1117throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1121string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1122throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1126string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1127throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1131string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1132throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1136string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1137throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1141string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1142throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1146string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1147throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1151string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1152throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1156string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1157throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1161string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1162throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1166string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1167throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1171string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1172throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1187string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1188throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1192string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1193throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1197string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1198throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1202string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1203throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1207string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1208throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1212string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1213throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1217string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1218throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1222string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1223throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1227string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1228throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1232string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1233throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1237string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1238throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1242string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1243throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1247string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1248throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1252string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1253throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1268string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1269throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1273string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1274throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1278string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1279throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1283string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1284throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1288string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1289throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1293string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1294throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1298string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1299throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1303string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1304throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1308string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1309throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1313string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1314throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1318string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1319throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1323string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1324throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1328string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1329throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1333string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleComparisonTypes, literalValue.GetType(), m_type); 1334throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type);
Rules\Parser\Parser.cs (1)
2533Type argExprType = arg.GetType();
Rules\RuleAttributes.cs (2)
330message = string.Format(CultureInfo.CurrentCulture, Messages.AttributeMethodNotFound, member.Name, this.GetType().Name, Messages.NullValue); 346message = string.Format(CultureInfo.CurrentCulture, Messages.AttributeMethodNotFound, member.Name, this.GetType().Name, methodInvoked);
Rules\RuleDefinitions.cs (1)
61rules = ConditionHelper.GetRuleDefinitionsFromManifest(rootActivity.GetType());
Rules\RuleSet.cs (1)
148Type activityType = activity.GetType();
Rules\RuleValidation.cs (5)
234actualParameters[0] = Executor.AdjustType(obj.GetType(), obj, assumedDeclaringType); 705result = Executor.AdjustType(result.GetType(), result, resultBaseType); 718result = Executor.AdjustType(result.GetType(), result, resultBaseType); 956this.thisType = thisObject.GetType(); 1955switch (Type.GetTypeCode(primitive.Value.GetType()))
Rules\Walker.cs (8)
92Type exprType = expression.GetType(); 127string message = string.Format(CultureInfo.CurrentCulture, Messages.CodeExpressionNotHandled, expression.GetType().FullName); 194if (firstExpression.GetType() != secondExpression.GetType()) 227Type statementType = statement.GetType(); 240string message = string.Format(CultureInfo.CurrentCulture, Messages.CodeStatementNotHandled, statement.GetType().FullName); 285if (firstStatement.GetType() != secondStatement.GetType())
StateValidator.cs (1)
103return new ValidationError(SR.GetString(SR.Error_DynamicActivity2, activity.QualifiedName, activity.ExecutionStatus, activity.GetType().FullName), ErrorNumbers.Error_DynamicActivity2);
WebServiceReceive.cs (5)
573string parameterPropertyName = ParameterInfoBasedPropertyDescriptor.GetParameterPropertyName(webServiceReceive.GetType(), paramName); 695string className = rootActivity.GetType().FullName; 698if (rootActivity.GetType().FullName.IndexOf(".") != -1) 699namespaceName = rootActivity.GetType().FullName.Substring(0, rootActivity.GetType().FullName.LastIndexOf('.'));
WebServiceResponse.cs (3)
423validationError.PropertyName = (String.Compare(paramName, "(ReturnValue)", StringComparison.Ordinal) == 0) ? paramName : ParameterInfoBasedPropertyDescriptor.GetParameterPropertyName(webServiceReceive.GetType(), paramName); 429validationError.PropertyName = (String.Compare(paramName, "(ReturnValue)", StringComparison.Ordinal) == 0) ? paramName : ParameterInfoBasedPropertyDescriptor.GetParameterPropertyName(webServiceReceive.GetType(), paramName); 443variableError.PropertyName = ParameterInfoBasedPropertyDescriptor.GetParameterPropertyName(webServiceReceive.GetType(), paramName);
While.cs (1)
187return new ValidationError(SR.GetString(SR.Error_DynamicActivity2, activity.QualifiedName, Enum.GetName(typeof(ActivityExecutionStatus), activity.ExecutionStatus), activity.GetType().FullName), ErrorNumbers.Error_DynamicActivity2);
System.Workflow.ComponentModel (375)
AuthoringOM\ActivitiesCollection.cs (6)
259throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().GetGenericArguments()[0].FullName)); 272throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().GetGenericArguments()[0].FullName)); 279throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().GetGenericArguments()[0].FullName)); 286throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().GetGenericArguments()[0].FullName)); 309throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().GetGenericArguments()[0].FullName)); 322throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().GetGenericArguments()[0].FullName));
AuthoringOM\Activity.cs (7)
249SetValue(NameProperty, GetType().Name); 1402this.UserData[typeof(PersistOnCloseAttribute)] = (this.GetType().GetCustomAttributes(typeof(PersistOnCloseAttribute), true).Length > 0); 1829object[] attributes = this.GetType().GetCustomAttributes(typeof(PersistOnCloseAttribute), true); 1904return this.QualifiedName + " [" + GetType().FullName + "]"; 2332if (this.DesignMode && Activity.ActivityType != null && this.GetType() == Activity.ActivityType) 2333throw new InvalidOperationException(SR.GetString(SR.Error_Missing_CanModifyProperties_True, this.GetType().FullName)); 2407if (activity != null && (activity.Name == null || activity.Name.Length == 0 || activity.Name == activity.GetType().Name))
AuthoringOM\ActivityExecutor.cs (5)
157Type activityType = activity.GetType(); 185if (!typeToExecutorMapping.Contains(activityExecutorsObjects[index].GetType())) 189if (!typeToExecutorMapping.Contains(activityExecutorsObjects[index].GetType())) 192typeToExecutorMapping[activityExecutorsObjects[index].GetType()] = activityExecutorsObjects[index]; 196activityExecutors[index] = (ActivityExecutor)typeToExecutorMapping[activityExecutorsObjects[index].GetType()];
AuthoringOM\Behaviors\ExceptionHandlerDesigner.cs (1)
22properties["InitializeField"] = TypeDescriptor.CreateProperty(GetType(), "InitializeField", typeof(bool), new Attribute[] { DesignerSerializationVisibilityAttribute.Hidden, BrowsableAttribute.No });
AuthoringOM\Behaviors\ExceptionHandlers.cs (1)
192validationErrors.Add(new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_ScopeDuplicateFaultHandlerActivityFor), new object[] { Helpers.GetEnclosingActivity(exceptionHandlers).GetType().Name, catchType.FullName }), ErrorNumbers.Error_ScopeDuplicateFaultHandlerActivityFor));
AuthoringOM\Bind.cs (11)
88System.Type memberType = dataContext.GetType(); 112DependencyProperty dependencyProperty = DependencyProperty.FromName(evt.Name, dependencyObject.GetType()); 231if (pathWalker.TryWalkPropertyPath(dataContext.GetType(), path)) 648MemberInfo memberInfo = ActivityBind.GetMemberInfo(referencedActivity.GetType(), Path, targetType); 661DependencyProperty dependencyProperty = DependencyProperty.FromName(this.Path, rootActivity.GetType()); 675MemberInfo memberInfo = ActivityBind.GetMemberInfo(referencedActivity.GetType(), Path, null); 703Type companionType = dataSourceActivity.GetType(); 846MemberInfo memberInfo = ActivityBind.GetMemberInfo(dataSourceObject.GetType(), contextBind.Path, null); 1071DependencyProperty eventDependencyProperty = DependencyProperty.FromName(evt.Name, value.GetType()); 1090DependencyProperty dependencyProperty = DependencyProperty.FromName(eventArgs.MemberInfo.Name, value.GetType()); 1153if (pathWalker.TryWalkPropertyPath(refActivity.GetType(), path))
AuthoringOM\Compiler\CodeGeneration\ActivityCodeGenerator.cs (1)
39foreach (ActivityCodeGenerator codeGenerator in manager.GetCodeGenerators(bindBase.GetType()))
AuthoringOM\Compiler\CodeGeneration\CompositeActivityCodeGenerator.cs (1)
26foreach (ActivityCodeGenerator codeGenerator in manager.GetCodeGenerators(child.GetType()))
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (1)
1190else if ((memberInfoType == typeof(MethodInfo)) && (member.GetType() == typeof(CodeMemberMethod)))
AuthoringOM\Compiler\TypeSystem\Helper.cs (2)
237baseMemberInfo = ((DesignTimeType)memberInfo.DeclaringType).GetBaseMember(memberInfo.GetType(), memberInfo.DeclaringType.BaseType, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance, new DesignTimeType.MemberSignature(memberInfo)); 274baseMemberInfo = ((DesignTimeType)memberInfo.DeclaringType).GetBaseMember(memberInfo.GetType(), memberInfo.DeclaringType.BaseType, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance, new DesignTimeType.MemberSignature(memberInfo));
AuthoringOM\Compiler\Validation\BindValidator.cs (6)
26type = refActivity.GetType(); 727error = new ValidationError(SR.GetString(SR.Error_PathCouldNotBeResolvedToMember, bind.Path, (!string.IsNullOrEmpty(refActivity.QualifiedName)) ? refActivity.QualifiedName : refActivity.GetType().Name), ErrorNumbers.Error_PathCouldNotBeResolvedToMember); 839refActivity.GetType(); 878MemberInfo memberInfo = MemberBind.GetMemberInfo(refActivity.GetType(), bind.Path); 948else if (validationContext.TargetType != null && !DoesTargetTypeMatch(validationContext.TargetType, value.GetType(), validationContext.Access)) 950error = new ValidationError(SR.GetString(SR.Error_TargetTypeMismatch, memberInfo.Name, value.GetType().FullName, validationContext.TargetType.FullName), ErrorNumbers.Error_TargetTypeMismatch);
AuthoringOM\Compiler\Validation\CompositeActivityValidator.cs (3)
32validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MoreThanOneCancelHandler, compositeActivity.GetType().Name), ErrorNumbers.Error_ScopeMoreThanOneEventHandlersDecl)); 36validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MoreThanOneFaultHandlersActivityDecl, compositeActivity.GetType().Name), ErrorNumbers.Error_ScopeMoreThanOneFaultHandlersActivityDecl)); 40validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MoreThanOneCompensationDecl, compositeActivity.GetType().Name), ErrorNumbers.Error_ScopeMoreThanOneCompensationDecl));
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (5)
29foreach (DependencyProperty prop in DependencyProperty.FromType(dependencyObject.GetType())) 43if (obj.GetType().GetProperty(prop.Name, BindingFlags.Public | BindingFlags.Instance) == null) 82else if (!dependencyProperty.PropertyType.IsAssignableFrom(dependencyProperty.DefaultMetadata.DefaultValue.GetType())) 84errors.Add(new ValidationError(SR.GetString(SR.Error_PropertyDefaultTypeMismatch, dependencyProperty.Name, dependencyProperty.PropertyType.FullName, dependencyProperty.DefaultMetadata.DefaultValue.GetType().FullName), ErrorNumbers.Error_PropertyDefaultTypeMismatch)); 196objType = enclosingActivity.GetType();
AuthoringOM\Compiler\XomlCompilerHelpers.cs (7)
151results.Errors.Add(CreateXomlCompilerError(new ValidationError(SR.GetString(SR.Error_Missing_CanModifyProperties_False, activity.GetType().FullName), ErrorNumbers.Error_CustomActivityCantCreate), parameters)); 222foreach (System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator codeGenerator in codeGenerationManager.GetCodeGenerators(activity.GetType())) 575if (error.GetType() == typeof(ValidationError)) 612string identifier = (Helpers.GetRootActivity(activity) != activity) ? activity.QualifiedName : activity.GetType().Name; 668foreach (Validator validator in validationManager.GetValidators(activity.GetType())) 684ValidationError error = new ValidationError(SR.GetString(SR.Error_ValidatorThrewException, e.GetType().FullName, validator.GetType().FullName, activity.Name, e.ToString()), ErrorNumbers.Error_ValidatorThrewException); 689ValidationError error = new ValidationError(SR.GetString(SR.Error_ValidatorThrewException, e.GetType().FullName, validator.GetType().FullName, activity.Name, e.ToString()), ErrorNumbers.Error_ValidatorThrewException);
AuthoringOM\ComponentFactoryHelpers.cs (5)
118if ((component != null && expectedBaseType != null && expectedBaseType.IsAssignableFrom(component.GetType()))) 120if (!components.ContainsKey(component.GetType())) 121components.Add(component.GetType(), component); 135if (!components.ContainsKey(component.GetType())) 136components.Add(component.GetType(), component);
AuthoringOM\DependencyObject.cs (14)
120if (!dependencyProperty.IsAttached && !dependencyProperty.OwnerType.IsAssignableFrom(this.GetType())) 121throw new InvalidOperationException(SR.GetString(SR.Error_InvalidDependencyProperty, this.GetType().FullName, dependencyProperty.Name, dependencyProperty.OwnerType.FullName)); 188if (!dependencyProperty.PropertyType.IsAssignableFrom(value.GetType())) 189throw new InvalidOperationException(SR.GetString(SR.Error_DynamicPropertyTypeValueMismatch, new object[] { dependencyProperty.PropertyType.FullName, dependencyProperty.Name, value.GetType().FullName })); 211if (!dependencyProperty.IsAttached && !dependencyProperty.OwnerType.IsAssignableFrom(this.GetType())) 212throw new InvalidOperationException(SR.GetString(SR.Error_InvalidDependencyProperty, this.GetType().FullName, dependencyProperty.Name, dependencyProperty.OwnerType.FullName)); 255if (!dependencyProperty.IsAttached && !dependencyProperty.OwnerType.IsAssignableFrom(this.GetType())) 256throw new InvalidOperationException(SR.GetString(SR.Error_InvalidDependencyProperty, this.GetType().FullName, dependencyProperty.Name, dependencyProperty.OwnerType.FullName)); 263if (value != null && !dependencyProperty.PropertyType.IsAssignableFrom(value.GetType())) 264throw new ArgumentException(SR.GetString(SR.Error_DynamicPropertyTypeValueMismatch, new object[] { dependencyProperty.PropertyType.FullName, dependencyProperty.Name, value.GetType().FullName }), "value"); 346if (!dependencyEvent.IsAttached && !dependencyEvent.OwnerType.IsAssignableFrom(this.GetType())) 347throw new InvalidOperationException(SR.GetString(SR.Error_InvalidDependencyProperty, this.GetType().FullName, dependencyEvent.Name, dependencyEvent.OwnerType.FullName)); 349if (value != null && !dependencyEvent.PropertyType.IsAssignableFrom(value.GetType())) 350throw new ArgumentException(SR.GetString(SR.Error_DynamicPropertyTypeValueMismatch, new object[] { dependencyEvent.PropertyType.FullName, dependencyEvent.Name, value.GetType().FullName }), "value");
AuthoringOM\Design\ActivityDesigner.cs (11)
448foreach (Validator validator in validationManager.GetValidators(activity.GetType())) 692designerImage = ActivityToolboxItem.GetToolboxImage(Activity.GetType()); 764title = Activity.GetType().Name; 769title = DR.GetString(DR.InfoTipTitle, Activity.GetType().Name, activityName); 779string tipText = (!String.IsNullOrEmpty(Activity.Description)) ? Activity.Description : ActivityDesigner.GetActivityDescription(Activity.GetType()); 1131this.Text = (!String.IsNullOrEmpty(activity.Name)) ? activity.Name : activity.GetType().Name; 1981activityDesigner.Image = ActivityToolboxItem.GetToolboxImage(activity.GetType()); 2021Type designerType = GetDesignerType(serviceProvider, activity.GetType(), typeof(IDesigner)); 2023designerType = GetDesignerType(serviceProvider, activity.GetType(), null); 3064if (Form.ActiveForm != null && Form.ActiveForm.GetType().FullName.Equals(typeof(ItemPalette).FullName + "+Palette", StringComparison.Ordinal)) 3074else if (Form.ActiveForm != null && Form.ActiveForm.GetType().FullName.Equals(typeof(ItemPalette).FullName + "+Palette", StringComparison.Ordinal))
AuthoringOM\Design\ActivityDesignerAccessibleObject.cs (3)
73return DR.GetString(DR.ActivityDesignerAccessibleDescription, this.activityDesigner.Activity.GetType().Name); 81return DR.GetString(DR.ActivityDesignerAccessibleHelp, this.activityDesigner.Activity.GetType().Name); 97return activity.GetType().FullName;
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (1)
117PropertyInfo nameProperty = activityDesigner.GetType().GetProperty("Name", BindingFlags.Instance | BindingFlags.NonPublic);
AuthoringOM\Design\CommandSet.cs (1)
940extendedUIService.AddAssemblyReference(pastedActivity.GetType().Assembly.GetName());
AuthoringOM\Design\ComponentSerializationService.cs (4)
325PropertyInfo propertyInfo = XomlComponentSerializationService.GetProperty(obj.GetType(), (this.memberList[loop] as PropertyDescriptor).Name, BindingFlags.Public | BindingFlags.Instance); 354Assembly a = activity.GetType().Assembly; 492ArrayList properties = new ArrayList(GetType().GetProperties()); 516PropertyInfo propInfo = XomlComponentSerializationService.GetProperty(this.obj.GetType(), propDesc.Name, BindingFlags.Public | BindingFlags.Instance);
AuthoringOM\Design\CompositeActivityDesigner.cs (1)
757if (!extendedUIService.IsSupportedType(activity.GetType()))
AuthoringOM\Design\Connector.cs (1)
772return this.connector.GetType().Name;
AuthoringOM\Design\CustomActivityDesigner.cs (6)
160object[] attribs = rootActivity.GetType().GetCustomAttributes(typeof(ToolboxItemAttribute), false); 164ToolboxItem item = Activator.CreateInstance(toolboxItemAttrib.ToolboxItemType, new object[] { rootActivity.GetType() }) as ToolboxItem; 173if (component.GetType() == rootActivity.GetType()) 229return activity.GetType().FullName; 298Type oldBaseType = host.RootComponent.GetType();
AuthoringOM\Design\DesignerHelpers.cs (3)
1601name = component.GetType().Name; 1681MethodInfo mi = host.RootComponent.GetType().GetMethod(uniqueName, bindingFlags, null, dti.ParameterTypes, null); 1738if (value != null && ruleConditionType.IsAssignableFrom(value.GetType()))
AuthoringOM\Design\DesignerWidgets.cs (2)
2985description = DR.GetString(DR.ActivityDesignerAccessibleDescription, activityDesigner.Activity.GetType().Name); 3009help = DR.GetString(DR.ActivityDesignerAccessibleHelp, activityDesigner.Activity.GetType().Name);
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (2)
275PropertyValidationContext propertyValidationContext = new PropertyValidationContext(this.context.Instance, DependencyProperty.FromName(this.context.PropertyDescriptor.Name, this.context.Instance.GetType())); 423activityType = activity.GetType();
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (4)
798if (parentCatagoryAttribute != null && parentCatagoryAttribute.Category == item.Text && (item.Tag == null || !typeof(Activity).IsAssignableFrom(item.Tag.GetType()))) 802if (designerCatagoryAttribute.Category == item.Text && (item.Tag == null || !typeof(Activity).IsAssignableFrom(item.Tag.GetType()))) 1084string fullTypeName = Activity.GetType().FullName; 1087Activity.Name = Activity.GetType().Name + id.ToString(CultureInfo.InvariantCulture);
AuthoringOM\Design\DocumentOutline.cs (2)
202int imageIndex = (this.treeView.ImageList != null) ? this.treeView.ImageList.Images.IndexOfKey(activity.GetType().FullName) : -1; 217this.treeView.ImageList.Images.Add(activity.GetType().FullName, activityImage);
AuthoringOM\Design\ExtenderHelpers.cs (1)
47ProvidePropertyAttribute[] propertyAttributes = extenderProvider.GetType().GetCustomAttributes(typeof(ProvidePropertyAttribute), true) as ProvidePropertyAttribute[];
AuthoringOM\Design\FreeFormDesigner.cs (1)
1230if (extenderProvider.GetType() == typeof(FreeFormDesignerPropertyExtender))
AuthoringOM\Design\IdentifierCreationService.cs (1)
168if (string.IsNullOrEmpty(activity.Name) || string.Equals(activity.Name, activity.GetType().Name, StringComparison.Ordinal))
AuthoringOM\Design\MessageFilters\DragDropManager.cs (6)
482transactionDescription = SR.GetString(SR.MoveSingleActivity, droppedActivities[0].GetType()); 488transactionDescription = SR.GetString(SR.CreateActivityFromToolbox, droppedActivities[0].GetType()); 664ToolboxBitmapAttribute toolboxBitmapAttribute = (ToolboxBitmapAttribute)TypeDescriptor.GetAttributes(draggedActivities[0].GetType())[typeof(ToolboxBitmapAttribute)]; 665image = toolboxBitmapAttribute.GetImage(draggedActivities[0].GetType()) as Bitmap; 666description = draggedActivities[0].GetType().Name; 855transactionDescription = SR.GetString(SR.MoveSingleActivity, this.existingDraggedActivities[0].GetType());
AuthoringOM\Design\MessageFilters\GlyphManager.cs (2)
44if (designerGlyph.GetType() == type) 49else if (type.IsAssignableFrom(designerGlyph.GetType()) && glyph == null)
AuthoringOM\Design\ParallelActivityDesigner.cs (1)
472CompositeActivityDesigner.InsertActivities(this, new ConnectorHitTestInfo(this, HitTestLocations.Designer, compositeActivity.Activities.Count), new List<Activity>(new Activity[] { branchActivity }).AsReadOnly(), DR.GetString(DR.AddingBranch, branchActivity.GetType().Name));
AuthoringOM\Design\PropertyDescriptors.cs (3)
283if (typeof(ActivityBindTypeConverter).IsAssignableFrom(baseTypeConverter.GetType())) 425Type objectType = (obj == rootActivity) ? Helpers.GetDataSourceClass(rootActivity, context) : obj.GetType(); 627if (TypeProvider.IsAssignable(boundType, matchingActivity.GetType()))
AuthoringOM\Design\ReferenceService.cs (2)
54BrowsableAttribute[] browsableAttrs = (BrowsableAttribute[])(value.GetType().GetCustomAttributes(typeof(BrowsableAttribute), true)); 307if (baseType.IsAssignableFrom(reference.GetType()))
AuthoringOM\Design\SecondaryViewProvider.cs (6)
47string displayName = ActivityToolboxItem.GetToolboxDisplayName(designer.Activity.GetType()); 48viewTypes.Add(new object[] { designer.Activity.GetType(), DR.GetString(DR.ViewActivity, displayName) }); 54Type activityType = designer.Activity.GetType(); 121if (activityType.IsAssignableFrom(activity.GetType())) 143if (this.parentDesigner.Activity.GetType() == activityType) 157if (activityType != this.parentDesigner.Activity.GetType())
AuthoringOM\Design\SequenceDesignerAccessibleObject.cs (2)
123return DR.GetString(DR.ConnectorAccessibleDescription, this.connectorHitInfo.GetType().Name); 131return DR.GetString(DR.ConnectorAccessibleHelp, this.connectorHitInfo.GetType().Name);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (2)
324if (secondaryViewTypes.Contains(activity.GetType())) 466SecondaryViewProvider.OnViewRemoved(this, listChangeArgs.RemovedItems[0].GetType());
AuthoringOM\Design\Themes.cs (3)
684return GetTheme(designer.GetType()) as ActivityDesignerTheme; 735if (designerTheme != null && !themeAttrib.DesignerThemeType.IsAssignableFrom(designerTheme.GetType())) 737((IDesignerSerializationManager)serializationManager).ReportError(new WorkflowMarkupSerializationException(DR.GetString(DR.ThemeTypesMismatch, new object[] { themeAttrib.DesignerThemeType.FullName, designerTheme.GetType().FullName })));
AuthoringOM\Design\TypeConverters.cs (14)
92if ((object)value.GetType() == conditionTypeEntry.Value) 129TypeConverter typeConverter = TypeDescriptor.GetConverter(value.GetType()); 130if (typeConverter != null && typeConverter.GetType() != GetType() && typeConverter.GetPropertiesSupported()) 162if (actualConverter != null && actualConverter.GetType() != typeof(ActivityBindTypeConverter)) 181if (actualConverter != null && actualConverter.GetType() != typeof(ActivityBindTypeConverter)) 210if (actualConverter != null && actualConverter.GetType() != typeof(ActivityBindTypeConverter) && actualConverter.CanConvertFrom(actualContext, typeof(string))) 237if (actualConverter != null && actualConverter.GetType() != typeof(ActivityBindTypeConverter) && actualConverter.CanConvertTo(actualContext, destinationType)) 260if (actualConverter != null && actualConverter.GetType() != typeof(ActivityBindTypeConverter)) 288if (actualConverter != null && actualConverter.GetType() != typeof(ActivityBindTypeConverter)) 305if (actualConverter != null && actualConverter.GetStandardValuesSupported(actualContext) && actualConverter.GetType() != typeof(ActivityBindTypeConverter)) 323if (actualConverter != null && actualConverter.GetType() != typeof(ActivityBindTypeConverter)) 342if (actualConverter != null && actualConverter.GetType() != typeof(ActivityBindTypeConverter)) 368activityBindPropertyDescriptor.RealPropertyDescriptor.Converter.GetType() != typeof(ActivityBindTypeConverter))
AuthoringOM\Design\WorkflowInlining.cs (3)
318SetBaseComponentClassName(this.rootActivity.GetType().FullName); 426PropertyInfo parameterProperty = Activity.GetType().GetProperty("ParameterBindings", BindingFlags.Instance | BindingFlags.Public); 448Type workflowType = Activity.GetType().InvokeMember("TargetWorkflow", BindingFlags.GetProperty | BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.ExactBinding, null, Activity, new object[] { }, CultureInfo.InvariantCulture) as Type;
AuthoringOM\Design\WorkflowView.cs (1)
1509helpService.AddContextAttribute("Keyword", RootDesigner.Activity.GetType().FullName, HelpKeywordType.F1Keyword);
AuthoringOM\Design\XomlDesignerLoader.cs (2)
174string rootSiteName = (!string.IsNullOrEmpty(fullClassName)) ? Helpers.GetClassName(fullClassName) : Helpers.GetClassName(activity.GetType().FullName); 457Type rootActivityType = rootDesigner.Component.GetType();
AuthoringOM\ItemList.cs (6)
326throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().GetGenericArguments()[0].FullName)); 339throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().GetGenericArguments()[0].FullName)); 346throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().GetGenericArguments()[0].FullName)); 353throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().GetGenericArguments()[0].FullName)); 376throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().GetGenericArguments()[0].FullName)); 389throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().GetGenericArguments()[0].FullName));
AuthoringOM\PropertyMetadata.cs (1)
115if (attributeType == null || attribute.GetType() == attributeType)
AuthoringOM\ScheduleChanges.cs (7)
403throw new ApplicationException(SR.GetString(SR.Error_WorkflowChangesNotSupported, ownerActivity.GetType().FullName)); 447if (originalWorkflowDefinition.GetType() != currentWorkflowDefinition.GetType()) 530clonedRootActivity = Activity.OnResolveActivityDefinition(originalRootActivity.GetType(), null, null, true, false, serviceProvider); 600Type companionType = rootActivity.GetType(); 676foreach (Validator validator in ComponentDispenser.CreateComponents(ownerActivity.GetType(), typeof(ActivityValidatorAttribute))) 896foreach (PropertyInfo property in obj.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy))
AuthoringOM\Serializer\ActivityCodeDomSerializationManager.cs (3)
218if (serializer.GetType().Assembly != typeof(CodeDomSerializer).Assembly && 219serializer.GetType().Assembly != Assembly.GetExecutingAssembly() && 220serializer.GetType().Assembly != Assembly.Load(AssemblyRef.ActivitiesAssemblyRef))
AuthoringOM\Serializer\ActivityCollectionMarkupSerializer.cs (1)
47throw new InvalidOperationException(SR.GetString(SR.Error_ActivityCollectionSerializer, childObj.GetType().FullName));
AuthoringOM\Serializer\ActivityExecutorSurrogate.cs (1)
17info.AddValue("executorType", obj.GetType());
AuthoringOM\Serializer\ActivityMarkupSerializationProvider.cs (1)
26if (baseSerializer.GetType() != typeof(WorkflowMarkupSerializer))
AuthoringOM\Serializer\ActivitySurrogate.cs (5)
41MemberInfo[] members = FormatterServicesNoSerializableCheck.GetSerializableMembers(obj.GetType(), out names); 83info.AddValue("type", activity.GetType()); 109info.AddValue("type", activity.GetType()); 252this.cachedActivity = (Activity)FormatterServices.GetUninitializedObject(this.cachedDefinitionActivity.GetType()); 262MemberInfo[] members = FormatterServicesNoSerializableCheck.GetSerializableMembers(this.cachedActivity.GetType(), out currentMemberNames);
AuthoringOM\Serializer\ActivitySurrogateSelector.cs (2)
130info.AddValue("type", obj.GetType()); 132MemberInfo[] members = FormatterServicesNoSerializableCheck.GetSerializableMembers(obj.GetType(), out names);
AuthoringOM\Serializer\CollectionMarkupSerializer.cs (10)
34if (!IsValidCollectionType(obj.GetType())) 35throw new Exception(SR.GetString(SR.Error_SerializerTypeRequirement, obj.GetType().FullName, typeof(ICollection).FullName, typeof(ICollection<>).FullName)); 54if (!IsValidCollectionType(value.GetType())) 55throw new Exception(SR.GetString(SR.Error_SerializerTypeRequirement, value.GetType().FullName, typeof(ICollection).FullName, typeof(ICollection<>).FullName)); 69if (!IsValidCollectionType(obj.GetType())) 70throw new Exception(SR.GetString(SR.Error_SerializerTypeRequirement, obj.GetType().FullName, typeof(ICollection).FullName, typeof(ICollection<>).FullName)); 74obj.GetType().InvokeMember("Clear", BindingFlags.Public | BindingFlags.InvokeMethod | BindingFlags.Instance, null, obj, new object[] { }, CultureInfo.InvariantCulture); 82if (!IsValidCollectionType(parentObj.GetType())) 83throw new Exception(SR.GetString(SR.Error_SerializerTypeRequirement, parentObj.GetType().FullName, typeof(ICollection).FullName, typeof(ICollection<>).FullName)); 85parentObj.GetType().InvokeMember("Add", BindingFlags.Public | BindingFlags.InvokeMethod | BindingFlags.Instance, null, parentObj, new object[] { childObj }, CultureInfo.InvariantCulture);
AuthoringOM\Serializer\CompositeActivityMarkupSerializer.cs (2)
26XmlQualifiedName xmlQualifiedName = serializationManager.GetXmlQualifiedName(compositeActivity.GetType(), out prefix); 32xmlQualifiedName = serializationManager.GetXmlQualifiedName(containedActivity.GetType(), out prefix);
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (1)
198if (ownerTypeName == obj.GetType().FullName)
AuthoringOM\Serializer\DictionaryMarkupSerializer.cs (3)
87if ((!entry.Value.GetType().IsValueType && entry.Value == childObj) || 88(entry.Value.GetType().IsValueType && entry.Value.Equals(childObj))) 96throw new InvalidOperationException(SR.GetString(SR.Error_DictionarySerializerKeyNotFound, childObj.GetType().FullName));
AuthoringOM\Serializer\DictionarySurrogate.cs (6)
17if (!obj.GetType().IsGenericType || obj.GetType().GetGenericTypeDefinition() != typeof(Dictionary<,>)) 20Type[] args = obj.GetType().GetGenericArguments(); 24PropertyInfo keysProperty = obj.GetType().GetProperty("Keys"); 30PropertyInfo valuesProperty = obj.GetType().GetProperty("Values"); 87MethodInfo addMethod = this.dictionary.GetType().GetMethod("Add");
AuthoringOM\Serializer\GenericQueueSurrogate.cs (4)
18if (!obj.GetType().IsGenericType || obj.GetType().GetGenericTypeDefinition() != typeof(Queue<>)) 21Type[] args = obj.GetType().GetGenericArguments(); 64MethodInfo enqueueMethod = this.queue.GetType().GetMethod("Enqueue");
AuthoringOM\Serializer\ListSurrogate.cs (4)
18if (!obj.GetType().IsGenericType || obj.GetType().GetGenericTypeDefinition() != typeof(List<>)) 21Type[] args = obj.GetType().GetGenericArguments(); 65MethodInfo addMethod = this.list.GetType().GetMethod("Add");
AuthoringOM\Serializer\MarkupExtensionSerializer.cs (6)
43XmlQualifiedName qualifiedName = serializationManager.GetXmlQualifiedName(value.GetType(), out prefix); 71if (argValue.GetType() == typeof(string)) 139if (propValue.GetType() == typeof(string)) 152serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerNoSerializeLogic, new object[] { serializableProperty.Name, value.GetType().FullName }))); 158serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerNoSerializeLogic, new object[] { serializableProperty.Name, value.GetType().FullName }))); 178return new InstanceDescriptor(markupExtension.GetType().GetConstructor(new Type[0]), null);
AuthoringOM\Serializer\PrimitiveCodeDomSerializer.cs (2)
64expression = new CodeCastExpression(value.GetType(), expression); 87return new CodeCastExpression(new CodeTypeReference(value.GetType()), expression);
AuthoringOM\Serializer\PropertySegmentSerializer.cs (3)
25if (obj != null && obj.GetType() == typeof(PropertySegment)) 51TypeConverter converter = GetTypeConversionInfoForPropertySegment(serializationManager, value.GetType(), out context); 81TypeConverter converter = GetTypeConversionInfoForPropertySegment(serializationManager, value.GetType(), out context);
AuthoringOM\Serializer\SerializableTypeCodeDomSerializer.cs (2)
45if (value.GetType().GetConstructor(new Type[0]) != null) 58varExct = new ExpressionContext(varExpression, value.GetType(), cxt.Owner, value);
AuthoringOM\Serializer\SimpleTypesSurrogate.cs (1)
24if (obj.GetType() == typeof(Guid))
AuthoringOM\Serializer\SynchronizationHandlesCodeDomSerializer.cs (2)
38statements.Add(new CodeVariableDeclarationStatement(obj.GetType(), variableName, new CodeObjectCreateExpression(obj.GetType())));
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (117)
105if ((string.IsNullOrEmpty(rootActivity.Name) || rootActivity.Name == rootActivity.GetType().Name) && !string.IsNullOrEmpty(rootActivity.GetValue(WorkflowMarkupSerializer.XClassProperty) as string)) 279WorkflowMarkupSerializer serializer = serializationManager.GetSerializer(obj.GetType(), typeof(WorkflowMarkupSerializer)) as WorkflowMarkupSerializer; 282serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerNotAvailable, obj.GetType().FullName), reader)); 292serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, obj.GetType().FullName, e.Message), e)); 302if (obj.GetType().IsPrimitive || obj.GetType() == typeof(string) || obj.GetType() == typeof(decimal) || 303obj.GetType().IsEnum || obj.GetType() == typeof(DateTime) || obj.GetType() == typeof(TimeSpan) || 304obj.GetType() == typeof(Guid)) 318serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerThrewException, obj.GetType(), e.Message), e, reader)); 395serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerNoMemberFound, new object[] { propName, obj.GetType().FullName }), reader)); 407serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, obj.GetType().FullName, e.Message), e)); 418serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerThrewException, obj.GetType(), e.Message), e, reader)); 448serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_InvalidDataFoundForType, obj.GetType().FullName), reader)); 467serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_InvalidElementFoundForType, reader.LocalName, obj.GetType().FullName), reader)); 507if (obj2 != null && obj2.GetType() == typeof(string) && ((string)obj2).StartsWith("{}", StringComparison.Ordinal)) 527serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_InvalidDataFound, reader.Value.Trim(), obj.GetType().FullName), reader)); 540serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, obj.GetType().FullName, e.Message), e)); 564bool key = entry.HasValue && ((!entry.Value.GetType().IsValueType && entry.Value.Key == entry.Value.Value && entry.Value.Value == obj) || 565(entry.Value.GetType().IsValueType && entry.Value.Key.Equals(entry.Value.Value) && entry.Value.Value.Equals(obj))) && 583throw new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerStackOverflow, obj.ToString(), obj.GetType().FullName), 0, 0); 605serializer = serializationManager.GetSerializer(obj.GetType(), typeof(WorkflowMarkupSerializer)) as WorkflowMarkupSerializer; 610serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, obj.GetType().FullName, e.Message), e)); 617serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerNotAvailableForSerialize, obj.GetType().FullName))); 627serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, obj.GetType().FullName, e.Message), e)); 640if (obj.GetType().IsPrimitive || obj.GetType() == typeof(string) || obj.GetType() == typeof(decimal) || 641obj.GetType() == typeof(DateTime) || obj.GetType() == typeof(TimeSpan) || obj.GetType().IsEnum || 642obj.GetType() == typeof(Guid)) 644if (obj.GetType() == typeof(char) || obj.GetType() == typeof(byte) || 645obj.GetType() == typeof(System.Int16) || obj.GetType() == typeof(decimal) || 646obj.GetType() == typeof(DateTime) || obj.GetType() == typeof(TimeSpan) || 647obj.GetType().IsEnum || obj.GetType() == typeof(Guid)) 650if ((obj.GetType() != typeof(char)) || (char)obj != '\0') 654if (obj.GetType() == typeof(DateTime)) 660TypeConverter typeConverter = TypeDescriptor.GetConverter(obj.GetType()); 670else if (obj.GetType() == typeof(string)) 710serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, obj.GetType().FullName, e.Message), e)); 822DependencyProperty dependencyProperty = DependencyProperty.FromName(propertyName, obj.GetType()); 827if (handler != null && activity != null && TypeProvider.Equals(handler.Target.GetType(), Helpers.GetRootActivity(activity).GetType())) 846serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerPropertyGetFailed, new object[] { propertyName, obj.GetType().FullName, e.Message }))); 857propertyValueType = propertyValue.GetType(); 862propertyValueType = propertyValue.GetType(); 872propertyValueType = propertyValue.GetType(); 883serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, obj.GetType().FullName, e.Message), e)); 933serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerNoSerializeLogic, new object[] { propertyName, obj.GetType().FullName }), e)); 948serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, obj.GetType().FullName, e.Message), e)); 968ownerType = obj.GetType(); 996WorkflowMarkupSerializer propValueSerializer = serializationManager.GetSerializer(propertyValue.GetType(), typeof(WorkflowMarkupSerializer)) as WorkflowMarkupSerializer; 1009serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerNotAvailableForSerialize, propertyValue.GetType().FullName))); 1022WorkflowMarkupSerializer propValueSerializer = serializationManager.GetSerializer(contents.GetType(), typeof(WorkflowMarkupSerializer)) as WorkflowMarkupSerializer; 1025serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerNotAvailableForSerialize, contents.GetType()))); 1049else if (CollectionMarkupSerializer.IsValidCollectionType(contents.GetType())) 1072WorkflowMarkupSerializer childObjectSerializer = serializationManager.GetSerializer(childObj2.GetType(), typeof(WorkflowMarkupSerializer)) as WorkflowMarkupSerializer; 1076serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerNotAvailableForSerialize, childObj2.GetType()))); 1100serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, obj.GetType().FullName, e.Message), e)); 1111serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, obj.GetType().FullName, e.Message), e)); 1182Type valueType = value.GetType(); 1198if (typeof(Delegate).IsAssignableFrom(value.GetType())) 1200else if (typeof(DateTime).IsAssignableFrom(value.GetType())) 1289else if (propertyType.IsAssignableFrom(value.GetType())) 1328throw new Exception(SR.GetString(SR.Error_SerializerNoChildNotion, new object[] { parentObject.GetType().FullName })); 1369object[] attributes = obj.GetType().GetCustomAttributes(typeof(RuntimeNamePropertyAttribute), true); 1374foreach (PropertyInfo property in obj.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy)) 1414foreach (EventInfo evt in obj.GetType().GetEvents(BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy)) 1495serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_MissingCLRProperty, dependencyProperty.Name, obj.GetType().FullName))); 1512if (propValue != null && propertyInfo.PropertyType.IsAssignableFrom(propValue.GetType())) 1622(value == null || pi.PropertyType.IsAssignableFrom(value.GetType()))) 1628else if (typeof(ICollection<string>).IsAssignableFrom(value.GetType())) 1830serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerReadOnlyPropertyAndValueIsNull, propertyName, obj.GetType().FullName), reader)); 1844serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerAttributesFoundInComplexProperty, propertyName, obj.GetType().FullName), reader)); 1868if (propValue != null && propValue.GetType() == typeof(string) && ((string)propValue).StartsWith("{}", StringComparison.Ordinal)) 1874WorkflowMarkupSerializer objSerializer = serializationManager.GetSerializer(obj.GetType(), typeof(WorkflowMarkupSerializer)) as WorkflowMarkupSerializer; 1877serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerNotAvailable, obj.GetType().FullName), reader)); 1887serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerThrewException, obj.GetType().FullName, e.Message), e, reader)); 1899serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerComplexPropertySetFailed, new object[] { propertyName, propertyName, obj.GetType().Name }))); 1933serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerPrimitivePropertyReadOnly, new object[] { property.Name, property.Name, obj.GetType().FullName }), reader)); 1980WorkflowMarkupSerializer objSerializer = serializationManager.GetSerializer(obj.GetType(), typeof(WorkflowMarkupSerializer)) as WorkflowMarkupSerializer; 1983serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerNotAvailable, obj.GetType().FullName), reader)); 2002serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerMemberSetFailed, new object[] { reader.LocalName, reader.Value, reader.LocalName, obj.GetType().FullName, e.Message }), e, reader)); 2021else if (typeof(ICollection<string>).IsAssignableFrom(memberValue.GetType())) 2036serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerMemberSetFailed, new object[] { reader.LocalName, reader.Value, reader.LocalName, obj.GetType().FullName, e.Message }), e, reader)); 2046serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerMemberSetFailed, new object[] { reader.LocalName, reader.Value, reader.LocalName, obj.GetType().FullName, e.Message }), e, reader)); 2068ownerType = attachedObj.GetType(); 2373XmlQualifiedName qualifiedName = this.serializationManager.GetXmlQualifiedName(owner.GetType(), out prefix); 2385XmlQualifiedName qualifiedName = this.serializationManager.GetXmlQualifiedName(owner.GetType(), out prefix); 2607WorkflowMarkupSerializer serializer = serializationManager.GetSerializer(obj.GetType(), typeof(WorkflowMarkupSerializer)) as WorkflowMarkupSerializer; 2610serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerNotAvailable, obj.GetType().FullName), reader)); 2621serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerThrewException, obj.GetType().FullName, e.Message), e, reader)); 2648serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerPrimitivePropertyNoLogic, new object[] { argName, argName, obj.GetType().FullName }), reader)); 2938this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, this.parentObject.GetType(), e.Message), e)); 2961this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, this.parentObject.GetType(), e.Message), e)); 3002this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, this.parentObject.GetType(), e.Message), e, contents[i].LineNumber, contents[i].LinePosition)); 3012this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentPropertyCanNotBeNull, this.contentProperty.Name, this.parentObject.GetType().FullName))); 3028this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, this.parentObject.GetType(), e.Message), e, contents[i].LineNumber, contents[i].LinePosition)); 3035this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentPropertyNoSetter, this.contentProperty.Name, this.parentObject.GetType()), contents[0].LineNumber, contents[0].LinePosition)); 3040this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentPropertyNoMultipleContents, this.contentProperty.Name, this.parentObject.GetType()), contents[1].LineNumber, contents[1].LinePosition)); 3043if (!this.contentProperty.PropertyType.IsAssignableFrom(content.GetType()) && typeof(string).IsAssignableFrom(content.GetType())) 3052this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, this.parentObject.GetType(), e.Message), e, contents[0].LineNumber, contents[0].LinePosition)); 3059this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentCanNotBeConverted, content as string, contentProperty.Name, this.parentObject.GetType().FullName, this.contentProperty.PropertyType.FullName), contents[0].LineNumber, contents[0].LinePosition)); 3061else if (!contentProperty.PropertyType.IsAssignableFrom(content.GetType())) 3063this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentPropertyValueInvalid, content.GetType(), this.contentProperty.Name, this.contentProperty.PropertyType.FullName), contents[0].LineNumber, contents[0].LinePosition)); 3078this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerThrewException, this.parentObject.GetType(), e.Message), e, contents[0].LineNumber, contents[0].LinePosition)); 3090object[] contentPropertyAttributes = parentObject.GetType().GetCustomAttributes(typeof(ContentPropertyAttribute), true); 3096contentProperty = parentObject.GetType().GetProperty(contentPropertyName, BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.Public); 3098serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentPropertyCouldNotBeFound, contentPropertyName, parentObject.GetType().FullName)));
AuthoringOM\Serializer\XamlInterfaces.cs (1)
265this.arrayType = elements.GetType().GetElementType();
Shared\BasePropertyDescriptor.cs (6)
42if (site == null && component.GetType().IsArray && (component as object[]).Length > 0 && (component as object[])[0] is IComponent) 73Type ownerType = owner.GetType(); 274if (string.Equals(this.realPropertyDescriptor.GetType().FullName, "System.ComponentModel.Design.InheritedPropertyDescriptor", StringComparison.Ordinal)) 562MemberInfo memberInfo = component.GetType().GetProperty("ParameterBindings", BindingFlags.GetProperty | BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.ExactBinding, null, typeof(WorkflowParameterBindingCollection), new Type[] { }, new ParameterModifier[] { }); 564retVal = component.GetType().InvokeMember("ParameterBindings", BindingFlags.GetProperty | BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.ExactBinding, null, component, new object[] { }, CultureInfo.InvariantCulture) as WorkflowParameterBindingCollection; 639string baseConverterTypeName = baseTypeConverter.GetType().FullName;
Shared\CompModHelpers.cs (5)
385string baseIdentifier = activity.GetType().Name; 439return activity.GetType(); 1050CompositeActivity activity = Activator.CreateInstance(compositeActivity.GetType()) as CompositeActivity; 1197Activity newCustomActivity = Activator.CreateInstance(declaringActivity.GetType()) as Activity; 1286isAlternateFlowActivityAttribute = activity.GetType().GetCustomAttributes(typeof(AlternateFlowActivityAttribute), true).Length != 0;
Shared\ValidationHelpers.cs (1)
193Type objType = obj.GetType();
Shared\Walker.cs (4)
190PropertyInfo[] props = obj.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance); 205DependencyProperty dependencyProperty = DependencyProperty.FromName(prop.Name, obj.GetType()); 249if (childObj != null && IsBrowsableType(childObj.GetType())) 256else if (propValue != null && IsBrowsableType(propValue.GetType()))
Shared\XomlSerializationHelpers.cs (1)
229TypeCodeDomSerializer typeCodeDomSerializer = codeDomSerializationManager.GetSerializer(rootActivity.GetType(), typeof(TypeCodeDomSerializer)) as TypeCodeDomSerializer;
System.Workflow.Runtime (91)
CorrelationToken.cs (1)
198if ((typeof(CompositeActivity).IsAssignableFrom(currentActivity.GetType())) && currentActivity.Enabled)
DebugEngine\DebugController.cs (8)
565LoadExistingScheduleType(GetScheduleTypeId(scheduleDefHash), rootActivity.GetType(), (changeActions != null && changeActions.Count != 0), rootActivity); 753LoadExistingScheduleType(GetScheduleTypeId(args.WorkflowDefinitionHashCode), rootActivity.GetType(), false, rootActivity); 861LoadExistingScheduleType(scheduleTypeId, oldRootActivity.GetType(), true, oldRootActivity); 896LoadExistingScheduleType(scheduleTypeId, rootActivity.GetType(), true, rootActivity); 1052return GetScheduleTypeId(rootActivity.GetType()); 1102MethodInfo getInvocationListMethod = activity.GetType().GetMethod("System.Workflow.ComponentModel.IDependencyObjectAccessor.GetInvocationList", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.FlattenHierarchy); 1104foreach (EventInfo eventInfo in activity.GetType().GetEvents(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.FlattenHierarchy)) 1106DependencyProperty dependencyEvent = DependencyProperty.FromName(eventInfo.Name, activity.GetType());
Hosting\WorkflowRuntimeService.cs (4)
67throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.ServiceNotAddedToRuntime, this.GetType().Name)); 69throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.ServiceAlreadyStarted, this.GetType().Name)); 77throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.ServiceNotAddedToRuntime, this.GetType().Name)); 79throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.ServiceNotStarted, this.GetType().Name));
RTTrackingProfile.cs (1)
91_workflowType = root.GetType();
System\Activities\Statements\Interop.cs (9)
497Debug.Assert((activity.GetType() == this.ActivityType), "activity must be the same type as this.ActivityType"); 689Attribute propertyAttribute = property.Attributes[filterAttribute.GetType()]; 939Left = new InArgument<string>(env => parent.Get(env).GetType().FullName), 1217Type interopBodyType = interopBody.GetType(); 1402else if (activity.GetType().FullName == "System.Workflow.Activities.SendActivity") 1431else if (activity.GetType().FullName == "System.Workflow.Activities.ReceiveActivity") 1517return this.Input.Get(context).GetType(); 1538return this.owner.GetType(); 1607return GetArgument().GetType();
System\Activities\Statements\InteropEnvironment.cs (2)
112activity.GetType(), 130activity.GetType(),
System\Activities\Statements\InteropExecutor.cs (2)
476propertyInfo = definition.GetType().GetProperty(truncatedName); 480propertyInfo = definition.GetType().GetProperty(input.Key);
Tracking.cs (26)
332Type workflowType = exec.WorkflowDefinition.GetType(); 348if (service.GetType() == channels[i].TrackingServiceType) 401TrackingChannelWrapper wrapper = new TrackingChannelWrapper(channel, service.GetType(), workflowType, rtp); 404Type t = service.GetType(); 440List<TrackingChannelWrapper> channels = GetChannels(sked, skedExec, skedExec.InstanceId, sked.GetType(), ref broker); 488Type serviceType = _services[i].GetType(); 555channels.Add(new TrackingChannelWrapper(channel, _services[i].GetType(), workflowType, profile)); 646ActivityTrackingRecord record = new ActivityTrackingRecord(activity.GetType(), activity.QualifiedName, contextGuid, parentContextGuid, activity.ExecutionStatus, dt, eventOrderId, null); 674UserTrackingRecord record = new UserTrackingRecord(activity.GetType(), activity.QualifiedName, contextGuid, parentContextGuid, dt, eventOrderId, e.Key, e.Args); 1200Type workflowType = schedule.GetType(); 1207if (TryGetFromCache(service.GetType(), workflowType, out tp)) 1221RemoveProfile(workflowType, service.GetType()); 1230if (TryGetFromCache(service.GetType(), workflowType, profile.Version, out tp)) 1240return CreateProfile(profile, schedule, service.GetType()); 1244tp = CreateProfile(profile, workflowType, service.GetType()); 1252if (TryGetFromCache(service.GetType(), workflowType, profile.Version, out tmp)) 1256if (!AddToCache(tp, service.GetType())) 1275Type workflowType = workflow.GetType(); 1279if (TryGetFromCache(service.GetType(), workflowType, versionId, out tp)) 1291return CreateProfile(profile, workflow, service.GetType()); 1295tp = CreateProfile(profile, workflowType, service.GetType()); 1303if (TryGetFromCache(service.GetType(), workflowType, versionId, out tmp)) 1307if (!AddToCache(tp, service.GetType())) 1323return new RTTrackingProfile(profile, workflow, service.GetType()); 1468Type t = sender.GetType(); 1493RemoveProfile(e.WorkflowType, sender.GetType());
Tracking\PropertyHelper.cs (4)
82Type t = o.GetType(); 97throw new MissingMemberException(o.GetType().Name, tmp); 170Type t = activity.GetType(); 238Type t = o.GetType();
Tracking\SqlTrackingService.cs (9)
1431Type t = record1.EventArgs.GetType(); 1453Type t = record2.EventArgs.GetType(); 1767Type t = record.UserData.GetType(); 2239item.Type = record.UserData.GetType(); 2320args.Type = record.EventArgs.GetType(); 2373Type type = added.GetType(); 2398Type type = added.GetType(); 2435s.Type = item.Data.GetType(); 2579Type t = activity.GetType();
Tracking\TrackingLocation.cs (2)
431Type objType = obj.GetType(); 463Type objType = obj.GetType();
Tracking\TrackingProfileSerializer.cs (9)
589if (0 != string.Compare(condition.GetType().Name, reader.Name, StringComparison.Ordinal)) 590throw new TrackingProfileDeserializationException(ExecutionStringManager.TrackingDeserializationInvalidPosition + condition.GetType().Name); 627if (0 == string.Compare(reader.Name, condition.GetType().Name, StringComparison.Ordinal)) 634throw new TrackingProfileDeserializationException(ExecutionStringManager.TrackingDeserializationCloseElementNotFound + condition.GetType().Name); 708if (0 == string.Compare(reader.Name, extract.GetType().Name, StringComparison.Ordinal)) 715throw new TrackingProfileDeserializationException(ExecutionStringManager.TrackingDeserializationCloseElementNotFound + extract.GetType().Name); 1198Type t = extract.GetType(); 1202writer.WriteStartElement(extract.GetType().Name); 1238writer.WriteStartElement(condition.GetType().Name);
WorkBatch.cs (1)
275WorkflowTrace.Runtime.TraceEvent(TraceEventType.Warning, 0, "Work Item {0} threw exception on complete notification", workItem.GetType());
WorkflowDefinitionDispenser.cs (6)
61Type workflowType = rootActivity.GetType(); 233foreach (Validator validator in validationManager.GetValidators(root.GetType())) 260if (root.GetType() != workflowType) 327Type workflowType = rootActivity.GetType(); 408Type type = activity.GetType(); 422Type type = node.Value.GetType();
WorkflowExecutor.cs (2)
368PropertyInfo propertyInfo = this.WorkflowDefinition.GetType().GetProperty(arg); 3023object[] attributes = activity.GetType().GetCustomAttributes(typeof(PersistOnCloseAttribute), true);
WorkflowRuntime.cs (5)
893if (GetAllServices(service.GetType()).Contains(service)) 899Type basetype = service.GetType(); 965if (!GetAllServices(service.GetType()).Contains(service)) 968Type type = service.GetType(); 1424Type companionType = rootActivity.GetType();
System.WorkflowServices (21)
System\ServiceModel\Activities\WorkflowRuntimeServicesExtensionProvider.cs (2)
25this.services.Add(service.GetType(), service); 32this.services.Remove(service.GetType());
System\ServiceModel\Description\PersistenceProviderBehavior.cs (1)
81wmiInstance.SetProperty("PersistenceProviderFactoryType", this.PersistenceProviderFactory.GetType().FullName);
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (3)
761Fx.Assert(additionalParameters[1].GetType() == typeof(bool), 942Fx.Assert(additionalParameters[0].GetType() == typeof(bool), 1462Fx.Assert(additionalParameters[1].GetType() == typeof(bool),
System\ServiceModel\Security\SerializableAuthorizationContext.cs (2)
74Type claimSetType = claimSet.GetType(); 83Type claimType = claim.GetType();
System\Workflow\Activities\Design\RichListBox.cs (4)
186SelectedItemViewControl = Activator.CreateInstance(GetDetailViewType(selectedItem.GetType())) as ListItemViewControl; 201activeItemViewControl = Activator.CreateInstance(GetItemViewType(selectedItem.GetType())) as ListItemViewControl; 225Type viewType = GetItemViewType(listItem.GetType()); 237Type viewType = GetItemViewType(listItem.GetType());
System\Workflow\Activities\Design\ServiceOperationUIEditor.cs (1)
46if (!(allowedActivityType.IsAssignableFrom(foundActivity.GetType())))
System\Workflow\Activities\OperationInfoBase.cs (1)
81OperationInfoBase clonedOperation = (OperationInfoBase) Activator.CreateInstance(this.GetType());
System\Workflow\Activities\ReceiveActivityDesigner.cs (1)
133if (extenderProvider.GetType() == typeof(WorkflowServiceAttributesPropertyProviderExtender))
System\Workflow\Activities\ServiceOperationHelpers.cs (2)
222if (attributeType.IsAssignableFrom(currentAttribute.GetType())) 252if (attributeType.IsAssignableFrom(attribute.GetType()))
System\Workflow\Activities\ValidationHelper.cs (2)
1082if (activity.GetType() == typeof(T)) 1098if (rootActivity.GetType() == typeof(T))
System\Workflow\Runtime\WorkflowDefinitionContext.cs (2)
66Type companionType = rootActivity.GetType(); 111foreach (Validator validator in validationManager.GetValidators(rootActivity.GetType()))
System.Xml (157)
System\Xml\Core\XmlReaderSettings.cs (1)
491throw new XmlException(Res.Xml_ReadOnlyProperty, this.GetType().Name + '.' + propertyName);
System\Xml\Core\XmlWriterSettings.cs (1)
666throw new XmlException(Res.Xml_ReadOnlyProperty, this.GetType().Name + '.' + propertyName);
System\Xml\Dom\XmlElement.cs (2)
364if (GetType() == typeof(XmlElement)) { 389if (e != null && e.GetType() == typeof(XmlElement)) {
System\Xml\Dom\XmlLoader.cs (1)
28if ( reader.GetType() == typeof( System.Xml.XmlTextReader ) ) {
System\Xml\Schema\DataTypeImplementation.cs (4)
386Type derivedType = this.GetType(); 387Type baseType = datatype.GetType(); 520if (value.GetType() != this.ValueType) { 1023Debug.Assert(array.GetType() == ListValueType);
System\Xml\Schema\Inference\Infer.cs (3)
989if (((XmlSchemaSequence)ct.Particle).Items[lastUsedSeqItem].GetType() != typeof (XmlSchemaElement)) 1052if (ct.Particle.GetType() == typeof (XmlSchemaSequence)) 1067if (xss.Items[0].GetType() == typeof (XmlSchemaChoice))
System\Xml\Schema\Preprocessor.cs (1)
311Type returnType = obj.GetType();
System\Xml\Schema\XmlSchemaDataType.cs (1)
254Type t = value.GetType();
System\Xml\Schema\XmlValueConverter.cs (51)
322this.clrTypeDefault = Array.CreateInstance(converterAtomic.DefaultClrType, 0).GetType(); 573throw CreateInvalidClrMappingException(value.GetType(), destinationType); 927Type sourceType = value.GetType(); 968Type sourceType = value.GetType(); 1002Type sourceType = value.GetType(); 1043Type sourceType = value.GetType(); 1120Type sourceType = value.GetType(); 1163Type sourceType = value.GetType(); 1237Type sourceType = value.GetType(); 1281Type sourceType = value.GetType(); 1312Type sourceType = value.GetType(); 1371Type sourceType = value.GetType(); 1441Type sourceType = value.GetType(); 1481Type sourceType = value.GetType(); 1564Type sourceType = value.GetType(); 1623Type sourceType = value.GetType(); 1672Type sourceType = value.GetType(); 1739Type sourceType = value.GetType(); 1782Type sourceType = value.GetType(); 1874Type sourceType = value.GetType(); 1941Type sourceType = value.GetType(); 2032Type sourceType = value.GetType(); 2117Type sourceType = value.GetType(); 2146Type sourceType = value.GetType(); 2192Type sourceType = value.GetType(); 2212Type sourceType = value.GetType(); 2232Type sourceType = value.GetType(); 2251Type sourceType = value.GetType(); 2271Type sourceType = value.GetType(); 2291Type sourceType = value.GetType(); 2311Type sourceType = value.GetType(); 2331Type sourceType = value.GetType(); 2375Type sourceType = value.GetType(); 2512Type sourceType = value.GetType(); 2591Type sourceType = value.GetType(); 2611Type sourceType = value.GetType(); 2724Type sourceType = value.GetType(); 2755Type sourceType = value.GetType(); 2770Type sourceType = value.GetType(); 2784Type sourceType = value.GetType(); 2799Type sourceType = value.GetType(); 2814Type sourceType = value.GetType(); 2829Type sourceType = value.GetType(); 2844Type sourceType = value.GetType(); 2859Type sourceType = value.GetType(); 2964Type sourceType = value.GetType(); 3032Type sourceType = value.GetType(); 3073if (!(value is IEnumerable) || value.GetType() == StringType || value.GetType() == ByteArrayType) { 3130Type sourceType = value.GetType(); 3345Type sourceType = value.GetType();
System\Xml\Serialization\Advanced\SchemaImporterExtension.cs (5)
60return Add(extension.GetType().FullName, extension); 100if (Names[name].GetType() != extension.GetType()) { 172string comment = Res.GetString(Res.XmlExtensionComment, extension.GetType().FullName); 176throw new InvalidOperationException(Res.GetString(Res.XmlExtensionDuplicateDefinition, extension.GetType().FullName, clrType));
System\Xml\Serialization\CodeGenerator.cs (2)
176return var.GetType(); 1044Type valueType = o.GetType();
System\Xml\Serialization\Compilation.cs (2)
590methods[mapping.Key].readMethod = GetMethodFromType(reader.GetType(), methodName, pregeneratedAssmbly ? this.assembly : null); 617methods[mapping.Key].writeMethod = GetMethodFromType(writer.GetType(), methodName, pregeneratedAssmbly ? assembly : null);
System\Xml\Serialization\ImportContext.cs (5)
132string key = item.GetType().Name + ":" + qname.ToString(); 148Warnings.Add(Res.GetString(Res.XmlMismatchSchemaObjects, item.GetType().Name, qname.Name, qname.Namespace)); 160if (o1.GetType() != o2.GetType()) 287Type t = item.GetType();
System\Xml\Serialization\SchemaObjectWriter.cs (9)
35return String.Compare(f1.GetType().Name + ":" + f1.Value, f2.GetType().Name + ":" + f2.Value, StringComparison.Ordinal); 280System.Type t = o.GetType(); 809System.Type t = o.GetType(); 859System.Type t = o.GetType(); 878System.Type t = o.GetType(); 905System.Type t = o.GetType(); 927System.Type t = o.GetType(); 946System.Type t = o.GetType();
System\Xml\Serialization\SoapReflectionImporter.cs (5)
690if (fieldTypeDesc != typeScope.GetTypeDesc(a.SoapDefaultValue.GetType())) 691throw new InvalidOperationException(Res.GetString(Res.XmlInvalidDefaultEnumValue, a.SoapDefaultValue.GetType().FullName, fieldTypeDesc.FullName)); 692string strValue = Enum.Format(a.SoapDefaultValue.GetType(), a.SoapDefaultValue, "G").Replace(",", " "); 693string numValue = Enum.Format(a.SoapDefaultValue.GetType(), a.SoapDefaultValue, "D"); 695throw new InvalidOperationException(Res.GetString(Res.XmlInvalidDefaultValue, strValue, a.SoapDefaultValue.GetType().FullName));
System\Xml\Serialization\SoapSchemaExporter.cs (1)
336throw new InvalidOperationException(Res.GetString(Res.XmlInvalidContent, type.ContentModel.Content.GetType().Name));
System\Xml\Serialization\SoapSchemaImporter.cs (1)
566throw new InvalidOperationException(Res.GetString(Res.XmlInvalidEnumContent, dataType.Content.GetType().Name, identifier));
System\Xml\Serialization\TypeExtensions.cs (1)
24Type sourceType = data.GetType();
System\Xml\Serialization\XmlAttributes.cs (1)
99if (attrs[i] is XmlIgnoreAttribute || attrs[i] is ObsoleteAttribute || attrs[i].GetType() == IgnoreAttribute) {
System\Xml\Serialization\XmlCodeExporter.cs (2)
196Type type = value.GetType(); 406AddWarningComment(comments, Res.GetString(Res.XmlNotKnownDefaultValue, extension.GetType().FullName, attributeName, (string)defaultValue, mapping.TypeName, mapping.Namespace));
System\Xml\Serialization\Xmlcustomformatter.cs (1)
44Type type = value.GetType();
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1870throw new InvalidOperationException(Res.GetString(Res.XmlInvalidDefaultValue, strValue, a.XmlDefaultValue.GetType().FullName));
System\Xml\Serialization\XmlSchemaExporter.cs (2)
618throw new InvalidOperationException(Res.GetString(Res.XmlInvalidContent, type.ContentModel.Content.GetType().Name)); 952throw new InvalidOperationException(Res.GetString(Res.XmlInvalidContent, type.ContentModel.Content.GetType().Name));
System\Xml\Serialization\XmlSchemaImporter.cs (5)
367if (!(desiredMappingType.IsAssignableFrom(mapping.GetType()))) 368throw new InvalidOperationException(Res.GetString(Res.XmlElementImportedTwice, element.Name, ns, mapping.GetType().Name, desiredMappingType.Name)); 402throw new InvalidOperationException(Res.GetString(Res.XmlImporterExtensionBadLocalTypeName, typeOwner.GetType().FullName, typeName)); 405throw new InvalidOperationException(Res.GetString(Res.XmlImporterExtensionBadTypeName, typeOwner.GetType().FullName, qname.Name, qname.Namespace, typeName)); 469if (mapping != null && desiredMappingType.IsAssignableFrom(mapping.GetType()))
System\Xml\Serialization\XmlSchemas.cs (8)
292if (ret == null || !type.IsAssignableFrom(ret.GetType())) { 418throw new InvalidOperationException(Res.GetString(Res.XmlSchemaIncludeLocation, this.GetType().Name, external.SchemaLocation)); 527item = Res.GetString(Res.XmlSchemaNamedItem, ns, o.GetType() == typeof(XmlSchemaSimpleType) ? "simpleType" : "complexType", ((XmlSchemaType)o).Name, null); 550string itemType = o is XmlSchemaImport ? "import" : o is XmlSchemaInclude ? "include" : o is XmlSchemaRedefine ? "redefine" : o.GetType().Name; 557item = Res.GetString(Res.XmlSchemaNamedItem, ns, o.GetType().Name, null, details); 567XmlSerializer s = new XmlSerializer(o.GetType()); 587Type type = o.GetType(); 591if (item.GetType() == type && name == ItemName(item)) {
System\Xml\Serialization\XmlSerializationReader.cs (4)
1293return new InvalidCastException(Res.GetString(Res.XmlInvalidCast, value.GetType().FullName, type.FullName)); 1295return new InvalidCastException(Res.GetString(Res.XmlInvalidCastWithId, value.GetType().FullName, type.FullName, id)); 1489throw new InvalidOperationException(Res.GetString(Res.XmlInvalidArrayRef, id, o.GetType().FullName, i.ToString(CultureInfo.InvariantCulture))); 1643Type currItemType = currItem.GetType();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
3694WriteSourceEnd(source, value == null ? typeof(object) : value.GetType());
System\Xml\Serialization\XmlSerializationWriter.cs (8)
225Type t = o.GetType(); 419if (objectsInUse.ContainsKey(o)) throw new InvalidOperationException(Res.GetString(Res.XmlCircularReference, o.GetType().FullName)); 681if (typeof(XmlAttribute).IsAssignableFrom(node.GetType())) 708return CreateUnknownTypeException(o.GetType()); 748return CreateInvalidAnyTypeException(o.GetType()); 1179Type t = o.GetType(); 1220Type t = o.GetType(); 3060Type type = value.GetType();
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
2062else if (value.GetType().IsPrimitive) { 2068Type valueType = value.GetType();
System\Xml\XPath\Internal\BaseAxisQuery.cs (2)
106if (qyInput.GetType() != typeof(ContextQuery)) { 122w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\BooleanExpr.cs (1)
57w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\BooleanFunctions.cs (1)
82w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\CacheOutputQuery.cs (1)
71w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\DescendantBaseQuery.cs (1)
52w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\FilterQuery.cs (1)
157w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\FunctionQuery.cs (1)
102w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\LogicalExpr.cs (1)
375w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\MergeFilterQuery.cs (1)
67w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\NodeFunctions.cs (1)
97w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\NumberFunctions.cs (1)
107w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\NumericExpr.cs (1)
72w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\OperandQuery.cs (1)
30w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\Query.cs (5)
167if (nav.GetType().ToString() == "Microsoft.VisualStudio.Modeling.StoreNavigator") return; 168if (nav.GetType().ToString() == "System.Xml.DataDocumentXPathNavigator") return; 191if (curr.GetType().ToString() == "Microsoft.VisualStudio.Modeling.StoreNavigator") return; 192if (curr.GetType().ToString() == "System.Xml.DataDocumentXPathNavigator") return; 231w.WriteElementString(this.GetType().Name, string.Empty);
System\Xml\XPath\Internal\SortQuery.cs (1)
104w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\StringFunctions.cs (1)
228w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\UnionExpr.cs (1)
139w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\VariableQuery.cs (1)
62w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\Internal\XPathAncestorQuery.cs (1)
59w.WriteStartElement(this.GetType().Name);
System\Xml\XPath\XPathNavigator.cs (1)
856if (n1.GetType().ToString() != "Microsoft.VisualStudio.Modeling.StoreNavigator") {
System\Xml\Xslt\XslTransform.cs (1)
296Type unknownType = unknownDebugger.GetType();
System.Xml.Linq (2)
System\Xml\Linq\XNodeNavigator.cs (2)
785if (!(result is T)) throw new InvalidOperationException(System.Xml.Linq.Res.GetString(System.Xml.Linq.Res.InvalidOperation_UnexpectedEvaluation, result.GetType())); 792if (!(r is T)) throw new InvalidOperationException(System.Xml.Linq.Res.GetString(System.Xml.Linq.Res.InvalidOperation_UnexpectedEvaluation, r.GetType()));
UIAutomationClient (4)
System\Windows\Automation\ItemContainerPattern.cs (1)
150|| (value != null && !expectedType.IsAssignableFrom(value.GetType()))))
System\Windows\Automation\PropertyCondition.cs (1)
150|| (val != null && !expectedType.IsAssignableFrom(val.GetType()))))
System\Windows\Automation\Text\TextRange.cs (2)
198if (value.GetType() != ai.Type) 200throw new ArgumentException(SR.Get(SRID.TextAttributeValueWrongType, attribute, ai.Type.Name, value.GetType().Name), "value");
UIAutomationClientsideProviders (119)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (55)
417return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 424new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), 432return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 446return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType())); 452return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 458return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 474return XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()), XSendMessage.ErrorValue.NoCheck); 481bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), XSendMessage.ErrorValue.NoCheck); 493bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), XSendMessage.ErrorValue.NoCheck); 514new IntPtr(group.iGroupID), new IntPtr(&group), Marshal.SizeOf(group.GetType())); 521new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType())); 528new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType())); 547new IntPtr(group.iGroupID), new IntPtr(pGroup), Marshal.SizeOf(group.GetType())); 558new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType())); 569new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType())); 592new IntPtr(group.iGroupID), new IntPtr(pGroup), Marshal.SizeOf(group.GetType())); 603new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType())); 614new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType())); 639return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item.iGroupID), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszHeader), item.cchHeader); 651return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item32.iGroupID), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszHeader), item32.cchHeader); 663return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item64.iGroupID), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszHeader), item64.cchHeader); 698return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item.iGroupID), new IntPtr(&item), Marshal.SizeOf(item.GetType()), textAddress, size, true); 716return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item32.iGroupID), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), textAddress, size, true); 734return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item64.iGroupID), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), textAddress, size, true); 760return XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType())); 767bool result = XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 780bool result = XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 801return GetTextWithinStructure(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 808new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), 816return GetTextWithinStructure(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 842return XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType())); 849bool result = XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 862bool result = XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 883return GetTextWithinStructure(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 891Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), item32.cchTextMax, 898return GetTextWithinStructure(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 924return XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType())); 931bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 944bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 965return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType())); 971return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 977return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 999Marshal.SizeOf(hitTestInfo.GetType()), XSendMessage.ErrorValue.Zero)) 1008Marshal.SizeOf(hitTestInfo32.GetType()), XSendMessage.ErrorValue.Zero)) 1017Marshal.SizeOf(hitTestInfo64.GetType()), XSendMessage.ErrorValue.Zero)) 1036return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 1044Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), item32.cchTextMax, 1051return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 1077return XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType()), ErrorValue.Zero); 1084bool result = XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), ErrorValue.Zero); 1097bool result = XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), ErrorValue.Zero); 1135Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), maxTextLength, true); 1143Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), maxTextLength, 1152Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), maxTextLength, true); 1180int cMem = Marshal.SizeOf(rectW32.GetType());
MS\Internal\AutomationProxies\Misc.cs (3)
1099gui.cbSize = Marshal.SizeOf(gui.GetType()); 1199ti.cbSize = Marshal.SizeOf(ti.GetType()); 1215ti.cbSize = Marshal.SizeOf(ti.GetType());
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
383throw new InvalidOperationException(SR.Get(SRID.EditControlsHaveNoChildren,GetType().FullName));
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (5)
51throw new InvalidOperationException(SR.Get(SRID.InvalidTextRangeOffset,GetType().FullName)); 1091throw new InvalidOperationException(SR.Get(SRID.InvalidTextRangeOffset,GetType().FullName)); 1103throw new InvalidOperationException(SR.Get(SRID.InvalidRangeEndpoint,GetType().FullName)); 1137throw new InvalidOperationException(SR.Get(SRID.InvalidTextRangeOffset,GetType().FullName)); 1168throw new InvalidOperationException(SR.Get(SRID.InvalidTextRangeOffset,GetType().FullName));
MS\Internal\AutomationProxies\WindowsHyperlink.cs (3)
227bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 412return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType())); 511bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
MS\Internal\AutomationProxies\WindowsListView.cs (7)
1284if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType()))) 1434result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1442result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1505if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETSUBITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType()))) 1678scrollBarInfo.cbSize = Marshal.SizeOf(scrollBarInfo.GetType()); 1689si.cbSize = Marshal.SizeOf (si.GetType ()); 1806if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMPOSITION, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(pt.GetType())))
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (1)
316XSendMessage.XSendGetIndex(_hwnd, NativeMethods.LVM_HITTEST, new IntPtr(-1), new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType()));
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (3)
398while (XSendMessage.XSend (hwnd, NativeMethods.LVM_GETNEXTITEMINDEX, new IntPtr(&ii), flags, Marshal.SizeOf(ii.GetType()))) 717new IntPtr(_groupID), new IntPtr(&rect), Marshal.SizeOf(rect.GetType())); 828sbi.cbSize = Marshal.SizeOf(sbi.GetType());
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (1)
79XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPRECT, new IntPtr(0), new IntPtr(&rect), Marshal.SizeOf(rect.GetType()));
MS\Internal\AutomationProxies\WindowsListViewItem.cs (2)
144if (XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETITEMINDEXRECT, new IntPtr(&ii), new IntPtr(&itemRectangle), Marshal.SizeOf(ii.GetType()), Marshal.SizeOf(itemRectangle.GetType())))
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (1)
66si.cbSize = Marshal.SizeOf (si.GetType ());
MS\Internal\AutomationProxies\WindowsMenu.cs (6)
521mbi.cbSize = Marshal.SizeOf(mbi.GetType()); 1907menuItemInfo.cbSize = Marshal.SizeOf(menuItemInfo.GetType()); 1922menuItemInfo.cbSize = Marshal.SizeOf (menuItemInfo.GetType ()); 1966menuItemInfo.cbSize = Marshal.SizeOf(menuItemInfo.GetType()); 2573menuItemInfo.cbSize = Marshal.SizeOf(menuItemInfo.GetType()); 2614int readSize = Marshal.SizeOf(msaaMenuInfo.GetType());
MS\Internal\AutomationProxies\WindowsRebar.cs (3)
223return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType())); 416if (!XSendMessage.XSend(hwnd, NativeMethods.RB_GETRECT, new IntPtr(item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero)) 450if (XSendMessage.XSend(_hwnd, NativeMethods.RB_GETBANDINFOA, new IntPtr(_item), new IntPtr(&rebarBandInfo), Marshal.SizeOf(rebarBandInfo.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
277throw new InvalidOperationException(SR.Get(SRID.RichEditTextPatternHasNoChildren,GetType().FullName));
MS\Internal\AutomationProxies\WindowsScroll.cs (6)
138sbi.cbSize = Marshal.SizeOf(sbi.GetType()); 154si.cbSize = Marshal.SizeOf (si.GetType ()); 205si.cbSize = Marshal.SizeOf (si.GetType ()); 260si.cbSize = Marshal.SizeOf (si.GetType ()); 299si.cbSize = Marshal.SizeOf(si.GetType ()); 373si.cbSize = Marshal.SizeOf (si.GetType ());
MS\Internal\AutomationProxies\WindowsScrollBar.cs (8)
153sbi.cbSize = Marshal.SizeOf (sbi.GetType ()); 450si.cbSize = Marshal.SizeOf (si.GetType ()); 464sbi.cbSize = Marshal.SizeOf (sbi.GetType ()); 538sbi.cbSize = Marshal.SizeOf (sbi.GetType ()); 589si.cbSize = Marshal.SizeOf (si.GetType ()); 640si.cbSize = Marshal.SizeOf (si.GetType ()); 726sbi.cbSize = Marshal.SizeOf (sbi.GetType ()); 741sbi.cbSize = Marshal.SizeOf(sbi.GetType());
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (3)
215si.cbSize = Marshal.SizeOf (si.GetType ()); 233sbi.cbSize = Marshal.SizeOf (sbi.GetType ()); 550si.cbSize = Marshal.SizeOf (si.GetType ());
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
477XSendMessage.XSend(hwnd, NativeMethods.TBM_GETCHANNELRECT, IntPtr.Zero, new IntPtr(&rcChannel), Marshal.SizeOf(rcChannel.GetType()), XSendMessage.ErrorValue.NoCheck); 489XSendMessage.XSend(hwnd, NativeMethods.TBM_GETTHUMBRECT, IntPtr.Zero, new IntPtr(&rcThumb), Marshal.SizeOf(rcThumb.GetType()), XSendMessage.ErrorValue.NoCheck);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (2)
177index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.HDM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 587result = XSendMessage.XSend(_hwnd, NativeMethods.HDM_GETITEMRECT, new IntPtr(index), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero);
MS\Internal\AutomationProxies\WindowsTab.cs (3)
279index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType())); 659result = XSendMessage.XSend(hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(count - 1), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero); 1278if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\WindowsTreeView.cs (3)
571if (!XSendMessage.XSend(hwnd, NativeMethods.TVM_GETITEMRECT, partialDisplay, rectangle, Marshal.SizeOf(rc.GetType()))) 951if (Marshal.SizeOf(_hItem.GetType()) > sizeof(int)) 1608int readSize = Marshal.SizeOf(ent.GetType());
WindowsBase (60)
Base\MS\Internal\AvTrace.cs (3)
312&& parameters[j].GetType() != typeof(string) 460return value.GetType().Name; 499return value.GetType();
Base\MS\Internal\BaseHashHelper.cs (1)
53Type type = item.GetType();
Base\MS\Internal\ComponentModel\APCustomTypeDescriptor.cs (2)
102Type instanceType = _instance.GetType(); 200if( typeConverter.GetType().IsPublic )
Base\MS\Internal\ComponentModel\AttachInfo.cs (2)
197Type attrType = attr.GetType(); 203if (attrType == subAttr.GetType() && subAttr.IsBrowsable(instance, _dp))
Base\MS\Internal\ComponentModel\DPCustomTypeDescriptor.cs (1)
220if( typeConverter.GetType().IsPublic )
Base\MS\Internal\IO\Packaging\CompoundFile\CompoundFileStorageReference.cs (4)
84if (o.GetType() != GetType()) 114if (o.GetType() != GetType())
Base\MS\Internal\IO\Packaging\CompoundFile\CompoundFileStreamReference.cs (4)
99if (o.GetType() != this.GetType()) 128if (o.GetType() != GetType())
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (1)
760SR.Get(SRID.InvalidDocumentPropertyType, propVal.GetType().ToString()),
Base\System\Collections\ObjectModel\WeakReadOnlyCollection.cs (1)
185Type targetType = array.GetType().GetElementType();
Base\System\ComponentModel\DependencyPropertyDescriptor.cs (1)
493if( typeConverter.GetType().IsPublic )
Base\System\IO\Packaging\CompoundFile\VersionPair.cs (4)
267if (obj.GetType() != GetType()) 310if (obj.GetType() != GetType())
Base\System\Security\Permissions\MediaPermission.cs (2)
370securityElement.AddAttribute("class", this.GetType().AssemblyQualifiedName); 400if (className == null || className.IndexOf(this.GetType().FullName, StringComparison.Ordinal) == -1)
Base\System\Security\Permissions\WebBrowserPermission.cs (2)
234securityElement.AddAttribute("class", this.GetType().AssemblyQualifiedName); 262if (className == null || className.IndexOf(this.GetType().FullName, StringComparison.Ordinal) == -1)
Base\System\Security\RightsManagement\LocalizedNameDescriptionPair.cs (2)
105if ((obj == null) || (obj.GetType() != GetType()))
Base\System\Security\RightsManagement\UseLicense.cs (2)
178if (x.GetType() != GetType())
Base\System\Security\RightsManagement\User.cs (2)
152if (GetType() != obj.GetType())
Base\System\Windows\DependencyObject.cs (1)
70_dType = DependencyObjectType.FromSystemTypeInternal(GetType());
Base\System\Windows\DependencyProperty.cs (2)
505if (!baseMetadata.GetType().IsAssignableFrom(typeMetadata.GetType()))
Base\System\Windows\EffectiveValueEntry.cs (1)
667_baseValue = (useWeakReference && !value.GetType().IsValueType)
Base\System\Windows\Freezable.cs (6)
652SR.Get(SRID.Freezable_CantBeFrozen,GetType().FullName)); 1991Invariant.Assert(newInstance.GetType() == original.GetType(), 1994methodName, original.GetType(), newInstance.GetType())); 2088&& owner.GetType().FullName != "System.Windows.Media.VisualBrush"; // ResourceDictionaries may not be owned by a VisualBrush.
Base\System\Windows\WeakEventManager.cs (2)
387bool foundStaleEntries = list.DeliverEvent(sender, args, this.GetType()); 810SR.Get(SRID.ListenerDidNotHandleEventDetail, iwel.GetType(), managerType));
parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
612throw new ObjectDisposedException(this.GetType().Name);
Shared\MS\Internal\Permissions\InternalPermissions.cs (11)
68Debug.Assert(GetType().IsSerializable); 107Type type = this.GetType(); 127if ( target.GetType() != this.GetType() ) 129throw new ArgumentException( SR.Get(SRID.InvalidPermissionType, this.GetType().FullName), "target"); 143if ( target.GetType() != this.GetType() ) 145throw new ArgumentException( SR.Get(SRID.InvalidPermissionType, this.GetType().FullName), "target"); 159if ( target.GetType() != this.GetType() ) 161throw new ArgumentException( SR.Get(SRID.InvalidPermissionType, this.GetType().FullName), "target");
Shared\MS\Utility\TraceProvider.cs (1)
290Type dataType = data.GetType();
Shared\System\Windows\Markup\ReflectionHelper.cs (1)
176return item.GetType();
XamlBuildTask (4)
Microsoft\Build\Tasks\Xaml\AttributeData.cs (1)
314if (typeConverter != null && typeConverter.CanConvertFrom(paramValue.GetType()))
Microsoft\Build\Tasks\Xaml\AttributeParameterData.cs (2)
53if (value != null && !type.UnderlyingType.IsAssignableFrom(value.GetType())) 55throw FxTrace.Exception.Argument("value", SR.AttributeValueNotAssignableToType(value.GetType(), type.UnderlyingType));
Microsoft\Build\Tasks\Xaml\XamlValidatingReader.cs (1)
340XamlType typeOfValue = SchemaContext.GetXamlType(value.GetType());