60 references to Cast
System.Activities.Presentation (5)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (2)
1213
return new PropertyDescriptorCollection(base.GetProperties().
Cast
<PropertyDescriptor>()
1220
return new PropertyDescriptorCollection(base.GetProperties(attributes).
Cast
<PropertyDescriptor>()
System.Activities.Presentation\System\Activities\Presentation\NamespaceSettingsHandler.cs (1)
183
return 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)
287
foreach (ModelItem selectedAndRemovedItem in selectedItems.Intersect(e.OldItems.
Cast
<ModelItem>()))
System.ComponentModel.DataAnnotations (5)
DataAnnotations\CompareAttribute.cs (1)
61
IEnumerable<Attribute> attributes = property.Attributes.
Cast
<Attribute>();
DataAnnotations\ValidationAttributeStore.cs (4)
121
TypeDescriptor.GetAttributes(type).
Cast
<Attribute>();
213
PropertyStoreItem item = new PropertyStoreItem(property.PropertyType, GetExplicitAttributes(property).
Cast
<Attribute>());
232
List<Attribute> attributes = new List<Attribute>(propertyDescriptor.Attributes.
Cast
<Attribute>());
233
IEnumerable<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)
1213
return new PropertyDescriptorCollection(base.GetProperties().
Cast
<PropertyDescriptor>()
1220
return new PropertyDescriptorCollection(base.GetProperties(attributes).
Cast
<PropertyDescriptor>()
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceSettingsHandler.cs (1)
183
return new PropertyDescriptorCollection(base.GetProperties(attributes).
Cast
<PropertyDescriptor>()
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
287
foreach (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)
201
IEnumerable<TResult> typedEnumerable = Enumerable.
Cast
<TResult>(source);
System\Data\TypedTableBase.cs (1)
52
return this.Rows.
Cast
<T>().GetEnumerator();
System.Data.Entity (17)
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
344
Dump(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)
174
IEnumerable<FunctionImportComplexTypeMapping> complexTypeMappings = structuralTypeMappings.
Cast
<FunctionImportComplexTypeMapping>();
495
.
Cast
<EntityType>()
System\Data\Mapping\FunctionImportMapping.ReturnTypeRenameMapping.cs (1)
63
.
Cast
<EntityType>()));
System\Data\Mapping\FunctionImportMappingNonComposable.cs (1)
192
structuralTypes = resultMapping.MappedEntityTypes.
Cast
<StructuralType>();
System\Data\Mapping\StorageEndPropertyMapping.cs (1)
105
return m_properties.OfType<StorageScalarPropertyMapping>().Select((propertyMap => propertyMap.ColumnProperty)).
Cast
<EdmMember>();
System\Data\Mapping\StorageEntityContainerMapping.cs (1)
292
IEnumerable<StorageAssociationSetMapping> associationSetMappings = m_associationSetMappings.Values.
Cast
<StorageAssociationSetMapping>().Where(w => ((w.StoreEntitySet != null) && (w.StoreEntitySet == storeEntitySet)));
System\Data\Mapping\StorageMappingItemLoader.cs (1)
2527
Common.TypeHelpers.GetAllStructuralMembers(structuralType).
Cast
<EdmMember>().Zip(propertyMappings)
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
229
IEnumerable<StorageScalarPropertyMapping> propertyMaps = foreignKeyEndMap.Properties.
Cast
<StorageScalarPropertyMapping>();
System\Data\Metadata\AspProxy.cs (1)
244
return referencedAssemblies.
Cast
<Assembly>();
System\Data\Objects\CompiledQuery.cs (1)
576
return 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)
129
IEnumerable<object> objQuery = Enumerable.
Cast
<object>(query);
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (1)
244
HashSet<EdmMember> columnsWithValues = new HashSet<EdmMember>(tree.SetClauses.
Cast
<DbSetClause>().Select(s => ((DbPropertyExpression)s.Property).Property));
System.Data.Linq (5)
ChangeTracker.cs (1)
506
this.AssignMember(this.current, am, ds.
Cast
<Object>().SingleOrDefault());
DataContext.cs (4)
601
var list = entities.
Cast
<object>().ToList();
1278
List<object> list = entities.
Cast
<object>().ToList();
1364
List<object> list = entities.
Cast
<object>().ToList();
1557
List<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)
2347
int count = this.FindBestMethod(members.
Cast
<MethodBase>(), args, out method);
System.Data.Services.Client (4)
System\Data\Services\Client\DataServiceContext.cs (3)
4145
this.ChangedEntries = context.entityDescriptors.Values.
Cast
<Descriptor>()
4146
.Union(context.bindings.Values.
Cast
<Descriptor>())
4212
foreach (EntityDescriptor box in this.ChangedEntries.Where(e => e.IsResource).
Cast
<EntityDescriptor>())
System\Data\Services\Client\QueryOperationResponseOfT.cs (1)
85
return this.Results.
Cast
<T>().GetEnumerator();
System.Web (13)
Compilation\BuildManager.cs (2)
918
var referencedAssemblies = BuildManager.GetReferencedAssemblies(compConfig).
Cast
<Assembly>();
1364
return assemblyInfoCollection.
Cast
<AssemblyInfo>()
Compilation\BuildProvidersCompiler.cs (2)
214
Parallel.ForEach(_satelliteAssemblyBuilders.Values.
Cast
<AssemblyBuilder>(),
776
Parallel.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)
62
IEnumerable<Attribute> attributes = FilterAttributes(containerType, propertyDescriptor, propertyDescriptor.Attributes.
Cast
<Attribute>());
73
IEnumerable<Attribute> attributes = GetTypeDescriptor(modelType).GetAttributes().
Cast
<Attribute>();
ModelBinding\AssociatedValidatorProvider.cs (1)
46
return 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)
53
return 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)
151
foreach (var attrib in Column.Attributes.
Cast
<Attribute>().OfType<ValidationAttribute>()) {
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
1404
int count = FindBestMethod(members.
Cast
<MethodBase>(), args, out method);