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