60 references to Cast
System.Activities.Presentation (5)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (2)
1213return new PropertyDescriptorCollection(base.GetProperties().Cast<PropertyDescriptor>() 1220return new PropertyDescriptorCollection(base.GetProperties(attributes).Cast<PropertyDescriptor>()
System.Activities.Presentation\System\Activities\Presentation\NamespaceSettingsHandler.cs (1)
183return new PropertyDescriptorCollection(base.GetProperties(attributes).Cast<PropertyDescriptor>()
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
312.Cast<CommandBinding>()
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
287foreach (ModelItem selectedAndRemovedItem in selectedItems.Intersect(e.OldItems.Cast<ModelItem>()))
System.ComponentModel.DataAnnotations (5)
DataAnnotations\CompareAttribute.cs (1)
61IEnumerable<Attribute> attributes = property.Attributes.Cast<Attribute>();
DataAnnotations\ValidationAttributeStore.cs (4)
121TypeDescriptor.GetAttributes(type).Cast<Attribute>(); 213PropertyStoreItem item = new PropertyStoreItem(property.PropertyType, GetExplicitAttributes(property).Cast<Attribute>()); 232List<Attribute> attributes = new List<Attribute>(propertyDescriptor.Attributes.Cast<Attribute>()); 233IEnumerable<Attribute> typeAttributes = TypeDescriptor.GetAttributes(propertyDescriptor.PropertyType).Cast<Attribute>();
System.Data (4)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (2)
1213return new PropertyDescriptorCollection(base.GetProperties().Cast<PropertyDescriptor>() 1220return new PropertyDescriptorCollection(base.GetProperties(attributes).Cast<PropertyDescriptor>()
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceSettingsHandler.cs (1)
183return new PropertyDescriptorCollection(base.GetProperties(attributes).Cast<PropertyDescriptor>()
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
287foreach (ModelItem selectedAndRemovedItem in selectedItems.Intersect(e.OldItems.Cast<ModelItem>()))
System.Data.DataSetExtensions (3)
System\Data\EnumerableRowCollection.cs (1)
109_enumerableRows = table.Rows.Cast<TRow>();
System\Data\EnumerableRowCollectionExtensions.cs (1)
201IEnumerable<TResult> typedEnumerable = Enumerable.Cast<TResult>(source);
System\Data\TypedTableBase.cs (1)
52return this.Rows.Cast<T>().GetEnumerator();
System.Data.Entity (17)
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
344Dump(System.Linq.Enumerable.Cast<DbExpression>(lambda.Variables), "Variables", "Variable");
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (1)
126.Cast<AssociationSet>()
System\Data\Common\EntityUtil.cs (1)
1621.Cast<ObjectStateEntry>()
System\Data\Common\Utils\MetadataHelper.cs (1)
344.Cast<EntitySet>()
System\Data\Mapping\FunctionImportMapping.cs (2)
174IEnumerable<FunctionImportComplexTypeMapping> complexTypeMappings = structuralTypeMappings.Cast<FunctionImportComplexTypeMapping>(); 495.Cast<EntityType>()
System\Data\Mapping\FunctionImportMapping.ReturnTypeRenameMapping.cs (1)
63.Cast<EntityType>()));
System\Data\Mapping\FunctionImportMappingNonComposable.cs (1)
192structuralTypes = resultMapping.MappedEntityTypes.Cast<StructuralType>();
System\Data\Mapping\StorageEndPropertyMapping.cs (1)
105return m_properties.OfType<StorageScalarPropertyMapping>().Select((propertyMap => propertyMap.ColumnProperty)).Cast<EdmMember>();
System\Data\Mapping\StorageEntityContainerMapping.cs (1)
292IEnumerable<StorageAssociationSetMapping> associationSetMappings = m_associationSetMappings.Values.Cast<StorageAssociationSetMapping>().Where(w => ((w.StoreEntitySet != null) && (w.StoreEntitySet == storeEntitySet)));
System\Data\Mapping\StorageMappingItemLoader.cs (1)
2527Common.TypeHelpers.GetAllStructuralMembers(structuralType).Cast<EdmMember>().Zip(propertyMappings)
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
229IEnumerable<StorageScalarPropertyMapping> propertyMaps = foreignKeyEndMap.Properties.Cast<StorageScalarPropertyMapping>();
System\Data\Metadata\AspProxy.cs (1)
244return referencedAssemblies.Cast<Assembly>();
System\Data\Objects\CompiledQuery.cs (1)
576return ObjectQueryProvider.ExecuteSingle<TResult>(Enumerable.Cast<TResult>(query), _query);
System\Data\Objects\ELinq\MethodCallTranslator.cs (1)
63.Cast<EdmFunctionAttribute>().FirstOrDefault();
System\Data\Objects\ELinq\ObjectQueryProvider.cs (1)
129IEnumerable<object> objQuery = Enumerable.Cast<object>(query);
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (1)
244HashSet<EdmMember> columnsWithValues = new HashSet<EdmMember>(tree.SetClauses.Cast<DbSetClause>().Select(s => ((DbPropertyExpression)s.Property).Property));
System.Data.Linq (5)
ChangeTracker.cs (1)
506this.AssignMember(this.current, am, ds.Cast<Object>().SingleOrDefault());
DataContext.cs (4)
601var list = entities.Cast<object>().ToList(); 1278List<object> list = entities.Cast<object>().ToList(); 1364List<object> list = entities.Cast<object>().ToList(); 1557List<object> list = entities.Cast<object>().ToList();
System.Data.Services (2)
System\Data\Services\MimeTypeAttribute.cs (1)
73.Cast<MimeTypeAttribute>()
System\Data\Services\Parsing\RequestQueryParser.cs (1)
2347int count = this.FindBestMethod(members.Cast<MethodBase>(), args, out method);
System.Data.Services.Client (4)
System\Data\Services\Client\DataServiceContext.cs (3)
4145this.ChangedEntries = context.entityDescriptors.Values.Cast<Descriptor>() 4146.Union(context.bindings.Values.Cast<Descriptor>()) 4212foreach (EntityDescriptor box in this.ChangedEntries.Where(e => e.IsResource).Cast<EntityDescriptor>())
System\Data\Services\Client\QueryOperationResponseOfT.cs (1)
85return this.Results.Cast<T>().GetEnumerator();
System.Web (13)
Compilation\BuildManager.cs (2)
918var referencedAssemblies = BuildManager.GetReferencedAssemblies(compConfig).Cast<Assembly>(); 1364return assemblyInfoCollection.Cast<AssemblyInfo>()
Compilation\BuildProvidersCompiler.cs (2)
214Parallel.ForEach(_satelliteAssemblyBuilders.Values.Cast<AssemblyBuilder>(), 776Parallel.ForEach(assemblyBuilders.Cast<AssemblyBuilder>(),
HttpCookieCollection.cs (1)
124_keysAwaitingValidation = new HashSet<string>(Keys.Cast<string>(), StringComparer.OrdinalIgnoreCase);
HttpValueCollection.cs (1)
76_keysAwaitingValidation = new HashSet<string>(Keys.Cast<string>().Where(KeyIsCandidateForValidation), StringComparer.OrdinalIgnoreCase);
ModelBinding\AssociatedMetadataProvider.cs (2)
62IEnumerable<Attribute> attributes = FilterAttributes(containerType, propertyDescriptor, propertyDescriptor.Attributes.Cast<Attribute>()); 73IEnumerable<Attribute> attributes = GetTypeDescriptor(modelType).GetAttributes().Cast<Attribute>();
ModelBinding\AssociatedValidatorProvider.cs (1)
46return GetValidators(metadata, context, GetTypeDescriptor(metadata.ModelType).GetAttributes().Cast<Attribute>());
ModelBinding\CookieValueProvider.cs (1)
30_prefixes = new PrefixContainer(collection.Keys.Cast<string>());
ModelBinding\ModelBinderUtil.cs (1)
53return rawValueAsEnumerable.Cast<object>().ToArray();
ModelBinding\NameValueCollectionValueProvider.cs (1)
27_prefixes = new PrefixContainer(collection.Keys.Cast<string>());
UI\WebControls\Wizard.cs (1)
1650_historyStack = new Stack<int>(collection.Cast<int>());
System.Web.DynamicData (1)
DynamicData\DynamicValidator.cs (1)
151foreach (var attrib in Column.Attributes.Cast<Attribute>().OfType<ValidationAttribute>()) {
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
1404int count = FindBestMethod(members.Cast<MethodBase>(), args, out method);