350 references to AsReadOnly
mscorlib (11)
system\security\claims\ClaimsIdentity.cs (2)
779return claims.AsReadOnly(); 810return claims.AsReadOnly();
system\security\claims\ClaimsPrincipal.cs (3)
570return claims.AsReadOnly(); 602return claims.AsReadOnly(); 737get { return m_identities.AsReadOnly(); }
system\security\policy\applicationtrust.cs (3)
84m_fullTrustAssemblies = new List<StrongName>().AsReadOnly(); 103m_fullTrustAssemblies = fullTrustList.AsReadOnly(); 277m_fullTrustAssemblies = fullTrustAssemblies.AsReadOnly();
system\security\policy\policystatement.cs (1)
217return m_dependentEvidence.AsReadOnly();
system\security\principal\windowsidentity.cs (2)
1224return m_userClaims.AsReadOnly(); 1237return m_deviceClaims.AsReadOnly();
PresentationFramework (24)
src\Framework\MS\Internal\Annotations\TextAnchor.cs (1)
572return _segments.AsReadOnly();
src\Framework\MS\Internal\WindowsRuntime\Windows\Data\Text\WordSegment.cs (1)
63_alternateForms = result.AsReadOnly();
src\Framework\MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (1)
171return result.AsReadOnly();
src\Framework\System\Windows\Controls\SelectedCellsChangedEventArgs.cs (2)
36_addedCells = addedCells.AsReadOnly(); 37_removedCells = removedCells.AsReadOnly();
src\Framework\System\Windows\Documents\NLGSpellerInterop.cs (4)
657_suggestions = suggestions.AsReadOnly(); 689_suggestions = suggestions.AsReadOnly(); 715_subSegments = subSegments.AsReadOnly(); 964_segments = segments.AsReadOnly();
src\Framework\System\Windows\Documents\Serialization\SerializerProvider.cs (1)
87_installedSerializers = installedSerializers.AsReadOnly();
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (5)
997_empty = new List<ISpellerSegment>().AsReadOnly(); 1011_suggestions = result.AsReadOnly(); 1024_suggestions = result.AsReadOnly(); 1037_suggestions = result.AsReadOnly(); 1150_segments = segments.AsReadOnly();
src\Framework\System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
80result = resultList.AsReadOnly();
src\Framework\System\Windows\Shell\JumpList.cs (6)
78RejectedItems = new List<JumpItem>(rejectedItems).AsReadOnly(); 79RejectionReasons = new List<JumpItemRejectionReason>(reasons).AsReadOnly(); 83RejectedItems = new List<JumpItem>().AsReadOnly(); 84RejectionReasons = new List<JumpItemRejectionReason>().AsReadOnly(); 105RemovedItems = new List<JumpItem>(removedItems).AsReadOnly(); 109RemovedItems = new List<JumpItem>().AsReadOnly();
src\Framework\System\Windows\SystemResources.cs (2)
227return dictionaries.AsReadOnly(); 258return dictionaries.AsReadOnly();
System (2)
net\System\Net\HttpListenerRequest.cs (1)
1050return m_TokenBindings.AsReadOnly();
net\System\Net\WebSockets\WebSocketHelpers.cs (1)
166secWebSocketProtocols.AsReadOnly(),
System.Activities (3)
System\Activities\Hosting\WorkflowInstance.cs (1)
339}.AsReadOnly();
System\Activities\Tracking\WorkflowInstanceUpdatedRecord.cs (2)
31this.BlockingActivities = new List<ActivityBlockingUpdate>(blockingActivities).AsReadOnly(); 44this.BlockingActivities = new List<ActivityBlockingUpdate>(blockingActivities).AsReadOnly();
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\MutableAttributeTable.cs (2)
245return attributes.AsReadOnly(); 317return attributes.AsReadOnly();
System.Core (9)
System\Diagnostics\Eventing\Reader\EventLogReader.cs (1)
348return list.AsReadOnly();
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (2)
1027return keywordsList.AsReadOnly(); 1060return keywordsList.AsReadOnly();
System\Diagnostics\Eventing\Reader\ProviderMetadata.cs (6)
225this.channelReferences = channelList.AsReadOnly(); 437this.levels = el.AsReadOnly(); 452this.opcodes = eo.AsReadOnly(); 466this.keywords = ek.AsReadOnly(); 481this.tasks = et.AsReadOnly(); 533return emList.AsReadOnly();
System.Data (8)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\MutableAttributeTable.cs (2)
245return attributes.AsReadOnly(); 317return attributes.AsReadOnly();
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (2)
86private static readonly IList<SmiExtendedMetaData> __emptyFieldList = new List<SmiExtendedMetaData>().AsReadOnly(); 406_fieldMetaData = (new List<SmiExtendedMetaData>(fieldTypes)).AsReadOnly();
fx\src\data\Microsoft\SqlServer\Server\SmiMetaDataProperty.cs (3)
103_columns = new List<bool>(columnIsKey).AsReadOnly(); 159_columns = new List<SmiColumnOrder>(columnOrders).AsReadOnly(); 218_defaults = new List<bool>(defaultFields).AsReadOnly();
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
8758private static readonly IEnumerable<MSS.SqlDataRecord> __tvpEmptyValue = new List<MSS.SqlDataRecord>().AsReadOnly();
System.Data.Entity (67)
System\Data\Common\CommandTrees\DbFunctionCommandTree.cs (2)
61_parameterNames = paramNames.AsReadOnly(); 62_parameterTypes = paramTypes.AsReadOnly();
System\Data\Common\CommandTrees\DbQueryCommandTree.cs (1)
48this._parameters = validator.Parameters.Select(paramInfo => paramInfo.Value).ToList().AsReadOnly();
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (2)
519return inputList.AsReadOnly(); 1671validRelatedRefs = relatedRefs.AsReadOnly();
System\Data\Common\CommandTrees\Internal\ParameterRetriever.cs (1)
35return retriever.paramMappings.Values.ToList().AsReadOnly();
System\Data\Common\DbXmlEnabledProviderManifest.cs (1)
174collection = list.AsReadOnly();
System\Data\Common\EntitySql\ParseResult.cs (1)
33this._functionDefs = functionDefs.AsReadOnly();
System\Data\EntityModel\SchemaObjectModel\Schema.cs (1)
57private static IList<string> _emptyPathList = new List<string>(0).AsReadOnly();
System\Data\Mapping\FunctionImportMapping.cs (2)
81.AsReadOnly(); 88.AsReadOnly();
System\Data\Mapping\StorageAssociationTypeMapping.cs (1)
100return new List<EdmType>().AsReadOnly();
System\Data\Mapping\StorageComplexPropertyMapping.cs (1)
92return this.m_typeMappings.AsReadOnly();
System\Data\Mapping\StorageComplexTypeMapping.cs (4)
48return new List<ComplexType>(m_types.Values).AsReadOnly(); 58return new List<ComplexType>(m_isOfTypes.Values).AsReadOnly(); 67return new List<StoragePropertyMapping>(m_properties.Values).AsReadOnly(); 80return properties.AsReadOnly();
System\Data\Mapping\StorageEndPropertyMapping.cs (1)
82return this.m_properties.AsReadOnly();
System\Data\Mapping\StorageEntityContainerMapping.cs (2)
174return new List<StorageSetMapping>(this.m_entitySetMappings.Values).AsReadOnly(); 191return new List<StorageSetMapping>(this.m_associationSetMappings.Values).AsReadOnly();
System\Data\Mapping\StorageEntitySetMapping.cs (2)
60get { return m_modificationFunctionMappings.AsReadOnly(); } 67get { return m_implicitlyMappedAssociationSetEnds.AsReadOnly(); }
System\Data\Mapping\StorageEntityTypeMapping.cs (2)
84return new List<EdmType>(m_entityTypes.Values).AsReadOnly(); 94return new List<EdmType>(m_isOfEntityTypes.Values).AsReadOnly();
System\Data\Mapping\StorageMappingFragment.cs (2)
131return properties.AsReadOnly(); 143return m_properties.AsReadOnly();
System\Data\Mapping\StorageModificationFunctionMapping.cs (3)
143.ToList().AsReadOnly(); 149ResultBindings = bindings.AsReadOnly(); 154.AsReadOnly();
System\Data\Mapping\StorageSetMapping.cs (1)
116return this.m_typeMappings.AsReadOnly();
System\Data\Mapping\StorageTypeMapping.cs (1)
81return this.m_fragments.AsReadOnly();
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (2)
212insertTree.Target, ReplaceClauses(insertTree.SetClauses, clauseMappings).AsReadOnly(), insertTree.Returning); 218updateTree.Target, updateTree.Predicate, ReplaceClauses(updateTree.SetClauses, clauseMappings).AsReadOnly(), updateTree.Returning);
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (2)
118command = new FunctionUpdateCommand(functionMapping, translator, stateEntries.ToList().AsReadOnly(), stateEntry); 318FunctionUpdateCommand command = new FunctionUpdateCommand(functionMapping, translator, new [] { stateEntry.Source }.ToList().AsReadOnly(), stateEntry);
System\Data\Mapping\Update\Internal\Propagator.JoinPropagator.JoinPredicateVisitor.cs (2)
90leftKeySelectors = visitor.m_leftKeySelectors.AsReadOnly(); 91rightKeySelectors = visitor.m_rightKeySelectors.AsReadOnly();
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (2)
128new DbUpdateCommandTree(m_translator.MetadataWorkspace, DataSpace.SSpace, target, predicate, setClauses.AsReadOnly(), returning); 160new DbInsertCommandTree(m_translator.MetadataWorkspace, DataSpace.SSpace, target, setClauses.AsReadOnly(), returning);
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (3)
66this.TypeMap = typeMap.AsReadOnly(); 67this.PropertyMap = propertyMap.ToList().AsReadOnly(); 68this.RelPropertyMap = relPropertyMap.ToList().AsReadOnly();
System\Data\Metadata\CacheForPrimitiveTypes.cs (1)
204return primitiveTypes.AsReadOnly();
System\Data\Metadata\Edm\EntitySet.cs (2)
165var readOnlyDependents = dependents.AsReadOnly(); 166var readOnlyPrincipals = principals.AsReadOnly();
System\Data\Metadata\Edm\ItemCollection.cs (2)
237return list.AsReadOnly(); 372functionOverloads = caseSensitiveFunctionOverloads.AsReadOnly();
System\Data\Metadata\Edm\MetadataCollection.cs (1)
113return _collectionData.OrderedList.AsReadOnly();
System\Data\Metadata\Edm\NavigationProperty.cs (1)
161return dependantProperties.AsReadOnly();
System\Data\Metadata\Edm\Provider\EdmProviderManifestFunctionBuilder.cs (1)
41return this.functions.AsReadOnly();
System\Data\Metadata\EdmItemCollection.cs (1)
387return _primitiveTypeMaps.GetTypes().Where(type => !Helper.IsSpatialType(type)).ToList().AsReadOnly();
System\Data\Metadata\MetadataArtifactLoaderComposite.cs (1)
47_children = new List<MetadataArtifactLoader>(children).AsReadOnly();
System\Data\Metadata\MetadataArtifactLoaderCompositeFile.cs (3)
117ReadOnlyCollection<MetadataArtifactLoaderFile> csdlChildren = GetArtifactsInDirectory(_path, XmlConstants.CSpaceSchemaExtension, _uriRegistry).AsReadOnly(); 122ReadOnlyCollection<MetadataArtifactLoaderFile> ssdlChildren = GetArtifactsInDirectory(_path, XmlConstants.SSpaceSchemaExtension, _uriRegistry).AsReadOnly(); 127ReadOnlyCollection<MetadataArtifactLoaderFile> mslChildren = GetArtifactsInDirectory(_path, XmlConstants.CSSpaceSchemaExtension, _uriRegistry).AsReadOnly();
System\Data\Metadata\MetadataArtifactLoaderCompositeResource.cs (1)
49_children = LoadResources(assemblyName, resourceName, uriRegistry, resolver).AsReadOnly();
System\Data\Metadata\ObjectLayer\ImmutableAssemblyCacheEntry.cs (2)
23_typesInAssembly = new List<EdmType>(mutableEntry.TypesInAssembly).AsReadOnly(); 24_closureAssemblies = new List<Assembly>(mutableEntry.ClosureAssemblies).AsReadOnly();
System\Data\Metadata\StoreItemCollection.cs (1)
353return cTypeFunctions.AsReadOnly();
System\Data\Objects\ELinq\CompiledELinqQueryState.cs (1)
218Funcletizer funcletizer = Funcletizer.CreateCompiledQueryEvaluationFuncletizer(this.ObjectContext, lambda.Parameters.First(), lambda.Parameters.Skip(1).ToList().AsReadOnly());
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
219if (null != _parameters) { return _parameters.AsReadOnly(); }
System\Data\Objects\ELinq\Funcletizer.cs (1)
350ReadOnlyCollection<Func<bool>> recompileRequiredDelegates = _recompileRequiredDelegates.AsReadOnly();
System\Data\Query\InternalTrees\ExplicitDiscriminatorMap.cs (1)
36.ToList().AsReadOnly();
System\Data\SqlClient\SqlProviderManifest.cs (2)
205this._primitiveTypes = primitiveTypes.AsReadOnly(); 229this._functions = functions.ToList().AsReadOnly();
System\Data\SqlClient\SqlTypesAssembly.cs (1)
95}.AsReadOnly();
System\Data\UpdateException.cs (1)
67_stateEntries = list.AsReadOnly();
System.Data.Entity.Design (2)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (2)
365StoreItemCollection storeItemCollection = new StoreItemCollection(new XmlReader[] { ssdl }, ssdlLocations.AsReadOnly(), out errors); 373EdmItemCollection edmItemCollection = new EdmItemCollection(new XmlReader[] { csdl }, csdlLocations.AsReadOnly(), out errors);
System.Data.Linq (41)
ChangeConflicts.cs (1)
310this.memberConflicts = list.AsReadOnly();
ChangeProcessor.cs (3)
334return new ChangeSet(newEntities.AsReadOnly(), deletedEntities.AsReadOnly(), changedEntities.AsReadOnly());
Mapping\AttributedMetaModel.cs (14)
148this.staticTables = new List<MetaTable>(tables).AsReadOnly(); 310return this.metaFunctions.Values.ToList().AsReadOnly(); 450this.inheritanceTypes = this.types.Values.ToList().AsReadOnly(); 453this.inheritanceTypes = new MetaType[] { this }.ToList().AsReadOnly(); 559this.identities = this.dataMembers.Where(m => m.IsPrimaryKey).ToList().AsReadOnly(); 560this.persistentMembers = this.dataMembers.Where(m => m.IsPersistent).ToList().AsReadOnly(); 640this.dataMembers = new List<MetaDataMember>(this.dataMemberMap.Values).AsReadOnly(); 763this.derivedTypes = dTypes.AsReadOnly(); 801this.associations = this.dataMembers.Where(m => m.IsAssociation).Select(m => m.Association).ToList().AsReadOnly(); 864static ReadOnlyCollection<MetaParameter> _emptyParameters = new List<MetaParameter>(0).AsReadOnly(); 865static ReadOnlyCollection<MetaType> _emptyTypes = new List<MetaType>(0).AsReadOnly(); 893this.rowTypes = new List<MetaType>(1) { this.GetMetaType(elementType) }.AsReadOnly(); 905this.rowTypes = rowTypes.AsReadOnly(); 919this.parameters = mps.AsReadOnly();
Mapping\MappedMetaModel.cs (18)
446this.inheritanceTypes = this.derivedTypes.Values.ToList().AsReadOnly(); 449this.inheritanceTypes = new MetaType[] { this }.ToList().AsReadOnly(); 597this.identities = this.dataMembers.Where(m => m.IsPrimaryKey).ToList().AsReadOnly(); 598this.persistentDataMembers = this.dataMembers.Where(m => m.IsPersistent).ToList().AsReadOnly(); 692this.dataMembers = dMembers.AsReadOnly(); 837this.derivedTypes = dTypes.AsReadOnly(); 881this.associations = this.dataMembers.Where(m => m.IsAssociation).Select(m => m.Association).ToList().AsReadOnly(); 1335static ReadOnlyCollection<MetaParameter> _emptyParameters = new List<MetaParameter>(0).AsReadOnly(); 1336static ReadOnlyCollection<MetaType> _emptyTypes = new List<MetaType>(0).AsReadOnly(); 1354this.rowTypes = new List<MetaType>(1) { this.GetMetaType(map.Types[0], elementType) }.AsReadOnly(); 1369this.rowTypes = rowTypes.AsReadOnly(); 1385this.parameters = mps.AsReadOnly(); 1504return new List<MetaDataMember>(members).AsReadOnly(); 1538private static ReadOnlyCollection<MetaType> _emptyTypes = new List<MetaType>().AsReadOnly(); 1539private static ReadOnlyCollection<MetaDataMember> _emptyDataMembers = new List<MetaDataMember>().AsReadOnly(); 1540private static ReadOnlyCollection<MetaAssociation> _emptyAssociations = new List<MetaAssociation>().AsReadOnly(); 1582this.inheritanceTypes = new MetaType[] { this }.ToList().AsReadOnly(); 1677this.dataMembers = dMembers.AsReadOnly();
SqlClient\Query\SqlParameterizer.cs (3)
67return this.ParameterizeInternal(node).AsReadOnly(); 88list.Add(parameters.AsReadOnly()); 90return list.AsReadOnly();
SqlClient\SqlProvider.cs (2)
971ICompiledSubQuery c = this.provider.CompileSubQuery(cq.Query.Select, clientElementType, cq.Parameters.AsReadOnly()); 1770spis.AsReadOnly(),
System.Data.Services (1)
System\Data\Services\Providers\OrderingInfo.cs (1)
55return this.orderingExpressions.AsReadOnly();
System.Data.Services.Client (2)
System\Data\Services\Client\DataServiceContext.cs (2)
403return this.bindings.Values.OrderBy(l => l.ChangeOrder).ToList().AsReadOnly(); 415return this.entityDescriptors.Values.OrderBy(d => d.ChangeOrder).ToList().AsReadOnly();
System.Data.SqlXml (2)
System\Xml\Xsl\Xslt\XslAst.cs (1)
103private static readonly IList<XslNode> EmptyList = new List<XslNode>().AsReadOnly();
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (1)
59private static IList<V> empty = (new List<V>()).AsReadOnly();
System.IdentityModel (34)
System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
167this.issuances = issuances.AsReadOnly();
System\IdentityModel\RsaEncryptionCookieTransform.cs (1)
105return _decryptionKeys.AsReadOnly();
System\IdentityModel\RsaSignatureCookieTransform.cs (1)
117return _verificationKeys.AsReadOnly();
System\IdentityModel\SecurityUtils.cs (4)
99return temp.AsReadOnly(); 606return policies.AsReadOnly(); 743return ret.AsReadOnly(); 797return ret.AsReadOnly();
System\IdentityModel\Selectors\RsaSecurityTokenAuthenticator.cs (1)
34return policies.AsReadOnly();
System\IdentityModel\Selectors\SamlSecurityTokenAuthenticator.cs (1)
137return policies.AsReadOnly();
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (2)
123policies.Add(new UnconditionalPolicy(claimSets.AsReadOnly(), x509Token.ValidTo)); 124return policies.AsReadOnly();
System\IdentityModel\Tokens\AggregateTokenResolver.cs (1)
47return _tokenResolvers.AsReadOnly();
System\IdentityModel\Tokens\AuthorizationPolicy.cs (1)
87return _identityCollection.AsReadOnly();
System\IdentityModel\Tokens\KerberosReceiverSecurityToken.cs (1)
76this.securityKeys = temp.AsReadOnly();
System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
92this.securityKeys = temp.AsReadOnly();
System\IdentityModel\Tokens\KerberosSecurityTokenHandler.cs (1)
110return identities.AsReadOnly();
System\IdentityModel\Tokens\RsaSecurityToken.cs (1)
174this.rsaKey = keys.AsReadOnly();
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (1)
183return identities.AsReadOnly();
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
394return identities.AsReadOnly(); 2222securityKeys = holderKeys.AsReadOnly();
System\IdentityModel\Tokens\SamlAssertion.cs (1)
450return cryptoList.AsReadOnly();
System\IdentityModel\Tokens\SamlAttribute.cs (1)
201return this.claims.AsReadOnly();
System\IdentityModel\Tokens\SamlAuthenticationClaimResource.cs (3)
53this.authorityBindings = (new List<SamlAuthorityBinding>()).AsReadOnly(); 74this.authorityBindings = tempList.AsReadOnly(); 134this.authorityBindings = value.AsReadOnly();
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
1041return identities.AsReadOnly();
System\IdentityModel\Tokens\SamlSubject.cs (1)
216return this.claims.AsReadOnly();
System\IdentityModel\Tokens\SamlSubjectStatement.cs (1)
85this.policy = new UnconditionalPolicy(this.subject.Identity, claimSets.AsReadOnly(), SecurityUtils.MaxUtcDateTime);
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (3)
34public static readonly ReadOnlyCollection<CookieTransform> DefaultCookieTransforms = (new List<CookieTransform>(new CookieTransform[] { new DeflateCookieTransform(), new ProtectedDataCookieTransform() }).AsReadOnly()); 568_transforms = new List<CookieTransform>(transforms).AsReadOnly(); 610return identitites.AsReadOnly();
System\IdentityModel\Tokens\WindowsUserNameSecurityTokenHandler.cs (1)
123return identities.AsReadOnly();
System\IdentityModel\Tokens\X509SecurityToken.cs (1)
73this.securityKeys = temp.AsReadOnly();
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (1)
593return identities.AsReadOnly();
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\InfoCardProofToken.cs (1)
70m_securityKeys = securityKeys.AsReadOnly();
System.IO.Log (1)
System\IO\Log\LogArchiveSnapshot.cs (1)
117this.regions = regions.AsReadOnly();
System.Runtime.Caching (2)
System\Caching\HostFileChangeMonitor.cs (1)
164return newList.AsReadOnly();
System\Caching\MemoryCache.cs (1)
386return new MemoryCacheEntryChangeMonitor(keysClone.AsReadOnly(), regionName, this);
System.ServiceModel (35)
System\ServiceModel\Channels\MsmqChannelListenerBase.cs (1)
218ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies = policies.AsReadOnly();
System\ServiceModel\Configuration\ServiceAuthorizationElement.cs (1)
144behavior.ExternalAuthorizationPolicies = policies.AsReadOnly();
System\ServiceModel\Security\FederatedSecurityTokenManager.cs (1)
434_defaultTokenResolver = SecurityTokenResolver.CreateDefaultSecurityTokenResolver( outOfBandTokens.AsReadOnly(), false );
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (4)
74return (new List<IAuthorizationPolicy>() { transformedPolicy }).AsReadOnly(); 193idfxAuthorizationPolicy = new AuthorizationPolicy(identities.AsReadOnly()); 250return transportTokenIdentityCollection.AsReadOnly(); 493return identities.AsReadOnly();
System\ServiceModel\Security\IssuedTokenServiceCredential.cs (2)
57return this.allowedAudienceUris.AsReadOnly(); 83return this.knownCertificates.AsReadOnly();
System\ServiceModel\Security\SctClaimsHandler.cs (1)
122sct.AuthorizationPolicies = iaps.AsReadOnly();
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (1)
655return authorizationPolicies.AsReadOnly();
System\ServiceModel\Security\SecurityTokenAuthenticatorAdapter.cs (1)
66return policies.AsReadOnly();
System\ServiceModel\Security\SecurityUtils.cs (2)
629return temp.AsReadOnly(); 988return policies.AsReadOnly();
System\ServiceModel\Security\SimpleSecurityTokenProvider.cs (1)
107return policies.AsReadOnly();
System\ServiceModel\Security\SpnegoTokenAuthenticator.cs (1)
142return policies.AsReadOnly();
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
269this.securityKeys = temp.AsReadOnly();
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (1)
944return policies.AsReadOnly();
System\ServiceModel\Security\Tokens\KerberosRequestorSecurityTokenAuthenticator.cs (1)
34return policies.AsReadOnly();
System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (1)
147authorizationPolicies != null ? authorizationPolicies.AsReadOnly() : null, isCookie, cookieBlob, keyGeneration, keyEffectiveTime, keyExpirationTime);
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
278this.securityKeys = temp.AsReadOnly();
System\ServiceModel\Security\Tokens\SecurityContextSecurityTokenHelper.cs (1)
122policies.AsReadOnly());
System\ServiceModel\Security\WrappedRsaSecurityTokenAuthenticator.cs (1)
72return policies.AsReadOnly();
System\ServiceModel\Security\WrappedSaml11SecurityTokenAuthenticator.cs (1)
72return policies.AsReadOnly();
System\ServiceModel\Security\WrappedSaml2SecurityTokenAuthenticator.cs (1)
83return policies.AsReadOnly();
System\ServiceModel\Security\WrappedSessionSecurityTokenAuthenticator.cs (1)
115return new List<IAuthorizationPolicy>(new AuthorizationPolicy[] { new AuthorizationPolicy(identities) }).AsReadOnly();
System\ServiceModel\Security\WrappedUserNameSecurityTokenAuthenticator.cs (1)
72return policies.AsReadOnly();
System\ServiceModel\Security\WrappedX509SecurityTokenAuthenticator.cs (1)
99return policies.AsReadOnly();
System\ServiceModel\Security\WSTrust.cs (1)
417return new RequestSecurityTokenResponseCollection(rstrCollection.AsReadOnly(), this.StandardsManager);
System\ServiceModel\Security\WSTrustChannelFactory.cs (1)
491resolver = SecurityTokenResolver.CreateDefaultSecurityTokenResolver(clientCredentialTokens.AsReadOnly(), false);
System\ServiceModel\Security\WSTrustServiceContract.cs (2)
127return SecurityTokenResolver.CreateDefaultSecurityTokenResolver(tokenList.AsReadOnly(), true); 161return SecurityTokenResolver.CreateDefaultSecurityTokenResolver(serviceTokens.AsReadOnly(), false);
System\ServiceModel\ServiceAuthenticationManager.cs (1)
52authPolicy = authPolicies.AsReadOnly();
System\ServiceModel\ServiceAuthorizationManager.cs (1)
77return policies.AsReadOnly();
System\ServiceModel\Syndication\ResourceCollectionInfo.cs (1)
178singleEmptyAccept = tmp.AsReadOnly();
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\SingleBodyParameterDataContractMessageFormatter.cs (1)
69this.knownTypes = tmp.AsReadOnly();
System.Web (3)
Abstractions\HttpFileCollectionWrapper.cs (1)
96return files.Select(f => (HttpPostedFileBase)new HttpPostedFileWrapper(f)).ToList().AsReadOnly();
HttpFileCollection.cs (1)
159return result.AsReadOnly();
Routing\HttpMethodConstraint.cs (1)
16AllowedMethods = allowedMethods.ToList().AsReadOnly();
System.Web.DataVisualization (2)
WebForm\General\ChartHttpHandler.cs (2)
2035return _events.AsReadOnly(); 2152return result.AsReadOnly();
System.Web.DynamicData (8)
DynamicData\MetaModel.cs (1)
653return Tables.OfType<IMetaTable>().ToList().AsReadOnly();
DynamicData\MetaTable.cs (3)
223_primaryKeyColumns = Columns.Where(c => c.IsPrimaryKey).ToList().AsReadOnly(); 1032return Columns.OfType<IMetaColumn>().ToList().AsReadOnly(); 1064return PrimaryKeyColumns.OfType<IMetaColumn>().ToList().AsReadOnly();
DynamicData\ModelProviders\EFAssociationProvider.cs (1)
77ForeignKeyNames = foreignKeyNames.AsReadOnly();
DynamicData\ModelProviders\EFDataModelProvider.cs (1)
72_tables = tables.AsReadOnly();
DynamicData\ModelProviders\SimpleModelProvider.cs (1)
22return _tables.AsReadOnly();
DynamicData\ModelProviders\SimpleTableProvider.cs (1)
41return _columns.AsReadOnly();
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceUtil.cs (2)
936return result.AsReadOnly(); 952ReadOnlyCollection<EdmMember> result = interestingMembers.ToList().AsReadOnly();
System\Data\WebControls\EntityDataSourceWrapperCollection.cs (1)
97AllPropertyDescriptors = propertyDescriptors.AsReadOnly();
System.Web.Extensions (2)
Util\OrderedDictionary.cs (2)
41return _keys.AsReadOnly(); 62return _values.AsReadOnly();
System.Workflow.Activities (15)
Designers\StateDesigner.cs (10)
712return excluded.AsReadOnly(); 781return validChildTypes.AsReadOnly(); 1115return connectionPoints.AsReadOnly(); 1138return connections.AsReadOnly(); 1174compositeDesigner.InsertActivities(new HitTestInfo(compositeDesigner, HitTestLocations.Designer), activitiesToInsert.AsReadOnly()); 1203setStateParentDesigner.RemoveActivities(activitiesToRemove.AsReadOnly()); 1251previousSetStateParentDesigner.RemoveActivities(activitiesToRemove.AsReadOnly()); 1257newSetStateParentDesigner.InsertActivities(new HitTestInfo(newSetStateParentDesigner, HitTestLocations.Designer), activitiesToInsert.AsReadOnly()); 1616if (activityDesigner == null || activityDesigner.ParentDesigner == null || !activityDesigner.ParentDesigner.CanMoveActivities(moveLocation, new List<Activity>(new Activity[] { activity }).AsReadOnly())) 1965new List<Activity>(new Activity[] { child }).AsReadOnly(),
Designers\StateDesigner.TransitionInfo.cs (1)
163return transitions.AsReadOnly();
Designers\StateDesignerConnector.cs (1)
126return excluded.AsReadOnly();
LocalService\ExternalDataExchangeService.cs (1)
119collection = this.services.AsReadOnly();
StateMachineWorkflowInstance.cs (2)
130return leafStates.AsReadOnly(); 259return targetStates.AsReadOnly();
System.Workflow.ComponentModel (61)
AuthoringOM\ActivitiesCollection.cs (4)
407return (this.removedItems != null) ? new List<Activity>(this.removedItems).AsReadOnly() : new List<Activity>().AsReadOnly(); 415return (this.addedItems != null) ? new List<Activity>(this.addedItems).AsReadOnly() : new List<Activity>().AsReadOnly();
AuthoringOM\Activity.cs (2)
2139return executableActivities.AsReadOnly(); 2155return secondaryFlowActivities.AsReadOnly();
AuthoringOM\ActivityExecutionContextCollection.cs (1)
317return completedContexts.AsReadOnly();
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (1)
76return arguments.AsReadOnly();
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (1)
626return referencedAssemblies.AsReadOnly();
AuthoringOM\ComponentFactoryHelpers.cs (1)
163return extenders.AsReadOnly();
AuthoringOM\DependencyObject.cs (1)
604return new List<DependencyProperty>(this.metaProperties.Keys).AsReadOnly();
AuthoringOM\DependencyProperty.cs (1)
161return filteredProperties.AsReadOnly();
AuthoringOM\Design\ActivityDesigner.cs (7)
397return new List<ActivityDesignerVerb>().AsReadOnly(); 478return this.designerActions.AsReadOnly(); 596return stockFilters.AsReadOnly(); 1006return connectionPoints.AsReadOnly(); 1191return connections.AsReadOnly(); 2549if (!compositeActivityDesigner.CanInsertActivities(hitInfo, new List<Activity>(activities).AsReadOnly())) 2557CompositeActivityDesigner.InsertActivities(compositeActivityDesigner, hitInfo, new List<Activity>(activities).AsReadOnly(), SR.GetString(SR.PastingActivities));
AuthoringOM\Design\ActivityPreviewDesigner.cs (1)
134return containedDesigners.AsReadOnly();
AuthoringOM\Design\CommandSet.cs (4)
409if (compositeActivityDesigner != null && !compositeActivityDesigner.CanRemoveActivities(new List<Activity>((Activity[])((ArrayList)entry.Value).ToArray(typeof(Activity))).AsReadOnly())) 471cmd.Enabled = (components != null && hitInfo != null && compositeDesigner.CanInsertActivities(hitInfo, new List<Activity>(Helpers.GetTopLevelActivities(components)).AsReadOnly())); 931if (hitInfo == null || !compositeDesigner.CanInsertActivities(hitInfo, topLevelActivities.AsReadOnly())) 943CompositeActivityDesigner.InsertActivities(compositeDesigner, hitInfo, topLevelActivities.AsReadOnly(), SR.GetString(SR.PastingActivities));
AuthoringOM\Design\CompositeActivityDesigner.cs (2)
165return designers.AsReadOnly(); 526parentDesigner.RemoveActivities(new List<Activity>(new Activity[] { activity }).AsReadOnly());
AuthoringOM\Design\Connector.cs (2)
306return connectorSegments.AsReadOnly(); 1790return linesToExclude.AsReadOnly();
AuthoringOM\Design\CustomActivityDesigner.cs (1)
332rootDesigner.RemoveActivities(activitiesToRemove.AsReadOnly());
AuthoringOM\Design\DesignerInterfaces.cs (1)
198return this.draggedActivities.AsReadOnly();
AuthoringOM\Design\FreeFormDesigner.cs (3)
330return this.connectors.AsReadOnly(); 883CompositeActivityDesigner.InsertActivities(this, new ConnectorHitTestInfo(this, HitTestLocations.Designer, ((CompositeActivity)Activity).Activities.Count), activitiesToInsert.AsReadOnly(), SR.GetString(SR.DragDropActivities)); 1198parentDesigner.MoveActivities(new ConnectorHitTestInfo(this, HitTestLocations.Designer, moveIndex), new List<Activity>(new Activity[] { childDesigner.Activity }).AsReadOnly());
AuthoringOM\Design\MessageFilters\DragDropManager.cs (4)
636return this.draggedActivities.AsReadOnly(); 728if (!compositeDesigner.IsEditable || !compositeDesigner.CanInsertActivities(dropLocation, new List<Activity>(this.draggedActivities).AsReadOnly())) 745if (compositeActivityDesigner != null && !compositeActivityDesigner.CanMoveActivities(dropLocation, new List<Activity>(activitiesToMove).AsReadOnly())) 857CompositeActivityDesigner.RemoveActivities(ParentView, this.existingDraggedActivities.AsReadOnly(), transactionDescription);
AuthoringOM\Design\MessageFilters\GlyphManager.cs (1)
243return this.designerGlyphProviders.AsReadOnly();
AuthoringOM\Design\MessageFilters\WindowManager.cs (2)
268if (compositeActivityDesigner != null && !compositeActivityDesigner.CanRemoveActivities(new List<Activity>((Activity[])((ArrayList)entry.Value).ToArray(typeof(Activity))).AsReadOnly())) 283CompositeActivityDesigner.RemoveActivities((IServiceProvider)this.ParentView, topLevelActivities.AsReadOnly(), SR.GetString(SR.DeletingActivities));
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 (1)
520return memberInfos.AsReadOnly();
AuthoringOM\Design\SecondaryViewProvider.cs (3)
86return views.AsReadOnly(); 98return activityTypes.AsReadOnly(); 191CompositeActivityDesigner.InsertActivities(this.parentDesigner, new HitTestInfo(this.parentDesigner, HitTestLocations.Designer), new List<Activity>(new Activity[] { activity }).AsReadOnly(), SR.GetString(SR.AddingImplicitActivity));
AuthoringOM\Design\SequentialActivityDesigner.cs (2)
210startDesignerConnections = connections.AsReadOnly(); 240endDesignerConnections = connections.AsReadOnly();
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (1)
262return connectionPoints.AsReadOnly();
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (6)
84return containedDesigners.AsReadOnly(); 188return this.views.AsReadOnly(); 239return smartTagVerbs.AsReadOnly(); 296return mappedDesigners.AsReadOnly(); 444return connectionPoints.AsReadOnly(); 732if (activityDesigner == null || activityDesigner.ParentDesigner == null || !activityDesigner.ParentDesigner.CanMoveActivities(moveLocation, new List<Activity>(new Activity[] { activity }).AsReadOnly()))
AuthoringOM\Design\WorkflowInlining.cs (1)
54return containedDesigners.AsReadOnly();
AuthoringOM\Design\WorkflowView.cs (1)
2214return mergedFilterList.AsReadOnly();
AuthoringOM\Design\XomlDesignerLoader.cs (1)
543return this.designerVerbProviders.AsReadOnly();
AuthoringOM\ItemList.cs (4)
53return (this.removedItems != null) ? new List<T>(this.removedItems).AsReadOnly() : new List<T>().AsReadOnly(); 61return (this.addedItems != null) ? new List<T>(this.addedItems).AsReadOnly() : new List<T>().AsReadOnly();
System.Workflow.Runtime (3)
WorkflowExecutor.cs (2)
1352queuedItems.Add(new WorkflowQueueInfo(name, items, subscribedActivities.AsReadOnly())); 1362return queuedItems.AsReadOnly();
WorkflowRuntime.cs (1)
272return lSchedules.AsReadOnly();
XamlBuildTask (5)
Microsoft\Build\Tasks\Xaml\AttributeParameterData.cs (1)
125return this.arrayContents == null ? null : this.arrayContents.AsReadOnly();
Microsoft\Build\Tasks\Xaml\BuildExtensionContext.cs (4)
56return this.references.AsReadOnly(); 74return this.sourceCodeFiles.AsReadOnly(); 100return this.generatedFiles.AsReadOnly(); 112return this.generatedResourceFiles.AsReadOnly();