368 references to ReadOnlyCollection
mscorlib (21)
system\AggregateException.cs (6)
47
m_innerExceptions = new
ReadOnlyCollection
<Exception>(new Exception[0]);
58
m_innerExceptions = new
ReadOnlyCollection
<Exception>(new Exception[0]);
77
m_innerExceptions = new
ReadOnlyCollection
<Exception>(new Exception[] { innerException });
172
m_innerExceptions = new
ReadOnlyCollection
<Exception>(exceptionsCopy);
251
m_innerExceptions = new
ReadOnlyCollection
<Exception>(exceptionsCopy);
278
m_innerExceptions = new
ReadOnlyCollection
<Exception>(innerExceptions);
system\array.cs (1)
46
return new
ReadOnlyCollection
<T>(array);
system\Collections\Concurrent\ConcurrentDictionary.cs (2)
2052
return new
ReadOnlyCollection
<TKey>(keys);
2086
return new
ReadOnlyCollection
<TValue>(values);
system\collections\generic\list.cs (1)
253
return new
ReadOnlyCollection
<T>(this);
system\diagnostics\eventing\eventsource.cs (5)
1427
eventCallbackArgs.Payload = new
ReadOnlyCollection
<object>(arg);
2171
eventCallbackArgs.Payload = new
ReadOnlyCollection
<object>(args);
2272
eventCallbackArgs.Payload = new
ReadOnlyCollection
<object>(new List<object>() { msg });
2273
eventCallbackArgs.PayloadNames = new
ReadOnlyCollection
<string>(new List<string> { "message" });
4838
m_payloadNames = new
ReadOnlyCollection
<string>(names);
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (2)
708
eventCallbackArgs.Payload = new
ReadOnlyCollection
<object>((IList<object>)payload.Values);
709
eventCallbackArgs.PayloadNames = new
ReadOnlyCollection
<string>((IList<string>)payload.Keys);
system\runtime\interopservices\windowsruntime\listtovectoradapter.cs (1)
74
roList = new
ReadOnlyCollection
<T>(_this);
system\threading\Tasks\Task.cs (1)
2127
new
ReadOnlyCollection
<ExceptionDispatchInfo>(new ExceptionDispatchInfo[0]);
system\threading\Tasks\TaskExceptionHolder.cs (1)
409
return new
ReadOnlyCollection
<ExceptionDispatchInfo>(exceptions);
system\timezoneinfo.cs (1)
966
cachedData.m_readOnlySystemTimeZones = new
ReadOnlyCollection
<TimeZoneInfo>(list);
PresentationCore (10)
Core\CSharp\System\Windows\Ink\GestureRecognizer.cs (2)
144
return new
ReadOnlyCollection
<ApplicationGesture>(_enabledGestures);
220
return new
ReadOnlyCollection
<GestureRecognitionResult>(_nativeRecognizer.Recognize(strokes));
Core\CSharp\System\Windows\Input\ManipulationDevice.cs (2)
258
return new
ReadOnlyCollection
<IManipulator>(_manipulators);
262
return new
ReadOnlyCollection
<IManipulator>(new List<IManipulator>(2));
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (2)
801
_readOnlyFrames = new
ReadOnlyCollection
<BitmapFrame>(_frames);
1085
_readOnlycolorContexts = new
ReadOnlyCollection
<ColorContext>(colorContextList);
Core\CSharp\System\Windows\Media\Imaging\BitmapFrameDecode.cs (1)
293
_readOnlycolorContexts = new
ReadOnlyCollection
<ColorContext>(colorContextList);
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadata.cs (2)
1391
: new
ReadOnlyCollection
<String>(strAuthors);
1576
: new
ReadOnlyCollection
<String>(strKeywords);
Core\CSharp\System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (1)
235
_readOnlyFrames = new
ReadOnlyCollection
<BitmapFrame>(_frames);
PresentationFramework (85)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
578
_ranges = new
ReadOnlyCollection
<TextSegment>(rangeArray);
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
1579
_pageViews = new
ReadOnlyCollection
<DocumentPageView>(documentPageViews);
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (2)
320
return new
ReadOnlyCollection
<GlyphRun>(new List<GlyphRun>());
535
return new
ReadOnlyCollection
<TextSegment>(new List<TextSegment>());
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (1)
701
return new
ReadOnlyCollection
<TextSegment>(textSegments);
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1314
return new
ReadOnlyCollection
<TextSegment>(segments);
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (1)
116
return new
ReadOnlyCollection
<TextSegment>(segments);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (4)
387
return new
ReadOnlyCollection
<GlyphRun>(glyphRuns);
601
return new
ReadOnlyCollection
<TextSegment>(new List<TextSegment>());
3303
textSegments = new
ReadOnlyCollection
<TextSegment>(segments);
3573
private static ReadOnlyCollection<ParagraphResult> _emptyParagraphCollection = new
ReadOnlyCollection
<ParagraphResult>(new List<ParagraphResult>(0));
src\Framework\MS\Internal\Documents\TextParagraphView.cs (1)
512
return new
ReadOnlyCollection
<TextSegment>(segments);
src\Framework\MS\Internal\Documents\TextViewBase.cs (1)
116
return new
ReadOnlyCollection
<GlyphRun>(new List<GlyphRun>());
src\Framework\MS\Internal\Documents\UIElementIsland.cs (1)
202
return new
ReadOnlyCollection
<Rect>(new List<Rect>());
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (1)
106
return new
ReadOnlyCollection
<UIElement>(_selectedElements);
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (2)
393
return new
ReadOnlyCollection
<ParagraphResult>(new List<ParagraphResult>(0));
412
return new
ReadOnlyCollection
<ParagraphResult>(paragraphResults);
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (7)
647
return new
ReadOnlyCollection
<ParagraphResult>(new List<ParagraphResult>(0));
673
return new
ReadOnlyCollection
<ParagraphResult>(new List<ParagraphResult>(0));
687
return new
ReadOnlyCollection
<ParagraphResult>(new List<ParagraphResult>(0));
707
return new
ReadOnlyCollection
<ParagraphResult>(paragraphResults);
784
return new
ReadOnlyCollection
<ColumnResult>(columnResults);
822
ReadOnlyCollection<ParagraphResult> paragraphs = (columns.Count > 0) ? columns[0].Paragraphs : new
ReadOnlyCollection
<ParagraphResult>(new List<ParagraphResult>(0));
870
return new
ReadOnlyCollection
<ParagraphResult>(floatingElements);
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (7)
653
return new
ReadOnlyCollection
<ParagraphResult>(new List<ParagraphResult>(0));
679
return new
ReadOnlyCollection
<ParagraphResult>(new List<ParagraphResult>(0));
693
return new
ReadOnlyCollection
<ParagraphResult>(new List<ParagraphResult>(0));
713
return new
ReadOnlyCollection
<ParagraphResult>(paragraphResults);
790
return new
ReadOnlyCollection
<ColumnResult>(columnResults);
828
ReadOnlyCollection<ParagraphResult> paragraphs = (columns.Count > 0) ? columns[0].Paragraphs : new
ReadOnlyCollection
<ParagraphResult>(new List<ParagraphResult>(0));
876
return new
ReadOnlyCollection
<ParagraphResult>(floatingElements);
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (6)
360
return new
ReadOnlyCollection
<Rect>(rectangles);
380
return new HostedElements(new
ReadOnlyCollection
<TextSegment>(new List<TextSegment>(0)));
400
return new
ReadOnlyCollection
<ParagraphResult>(floatingElements);
538
return new
ReadOnlyCollection
<ColumnResult>(columnResults);
604
return new
ReadOnlyCollection
<ParagraphResult>(new List<ParagraphResult>(0));
622
return new
ReadOnlyCollection
<ParagraphResult>(paragraphResults);
src\Framework\MS\Internal\PtsHost\PageVisual.cs (1)
137
return new
ReadOnlyCollection
<Rect>(new List<Rect>(0));
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (3)
669
return new
ReadOnlyCollection
<ColumnResult>(columnResults);
707
return new
ReadOnlyCollection
<ParagraphResult>(paragraphResults);
782
return new
ReadOnlyCollection
<ParagraphResult>(floatingElements);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (4)
776
return new
ReadOnlyCollection
<ParagraphResult>(rowParagraphResults);
836
return new
ReadOnlyCollection
<ParagraphResult>(cellParagraphResults);
858
return new
ReadOnlyCollection
<ParagraphResult>(listResults);
879
return new
ReadOnlyCollection
<ParagraphResult>(listResults);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (5)
399
ReadOnlyCollection<LineResult> lines = new
ReadOnlyCollection
<LineResult>(new List<LineResult>(0));
478
return (floaters != null && floaters.Count > 0) ? new
ReadOnlyCollection
<ParagraphResult>(floaters) : null;
522
return (figures != null && figures.Count > 0) ? new
ReadOnlyCollection
<ParagraphResult>(figures) : null;
1756
return (lines.Count > 0) ? new
ReadOnlyCollection
<LineResult>(lines) : null;
1825
return (lines.Count > 0) ? new
ReadOnlyCollection
<LineResult>(lines) : null;
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
466
return new HostedElements(new
ReadOnlyCollection
<TextSegment>(new List<TextSegment>(0)));
482
return new
ReadOnlyCollection
<Rect>(new List<Rect>(0));
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
1266
pageViews = new
ReadOnlyCollection
<DocumentPageView>(new List<DocumentPageView>(0));
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
1750
return new
ReadOnlyCollection
<ApplicationGesture>(this.GestureRecognizer.GetEnabledGestures());
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (1)
155
_itemsReadOnly = new
ReadOnlyCollection
<object>(new ListOfObject(_items));
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
81
_pageViews = new
ReadOnlyCollection
<DocumentPageView>(new List<DocumentPageView>());
468
return new
ReadOnlyCollection
<DocumentPageView>(pageViewList);
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1483
OnTextChanged(new TextChangedEventArgs(TextChangedEvent, undoAction, new
ReadOnlyCollection
<TextChange>(e.Changes.Values)));
src\Framework\System\Windows\Controls\TextBlock.cs (8)
1838
return new
ReadOnlyCollection
<Rect>(new List<Rect>(0));
1848
return new
ReadOnlyCollection
<Rect>(new List<Rect>(0));
1855
return new
ReadOnlyCollection
<Rect>(new List<Rect>(0));
1871
return new
ReadOnlyCollection
<Rect>(new List<Rect>(0));
1940
return new
ReadOnlyCollection
<Rect>(rectangles);
1959
return new HostedElements(new
ReadOnlyCollection
<TextSegment>(new List<TextSegment>(0)));
1966
ReadOnlyCollection<TextSegment> textSegments = new
ReadOnlyCollection
<TextSegment>(textSegmentsList);
2161
return new
ReadOnlyCollection
<LineResult>(lines);
src\Framework\System\Windows\Controls\TextChangedEventArgs.cs (1)
100
: this(id, action, new
ReadOnlyCollection
<TextChange>(new List<TextChange>()))
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
311
return new
ReadOnlyCollection
<ValidationError>(list);
src\Framework\System\Windows\Data\BindingGroup.cs (2)
263
return new
ReadOnlyCollection
<ValidationError>(superset);
276
return new
ReadOnlyCollection
<ValidationError>(errors);
src\Framework\System\Windows\Data\BindingOperations.cs (2)
407
return new
ReadOnlyCollection
<BindingExpressionBase>(list);
418
return new
ReadOnlyCollection
<BindingGroup>(list);
src\Framework\System\Windows\Data\CollectionView.cs (1)
1521
return new
ReadOnlyCollection
<ItemPropertyInfo>(list);
src\Framework\System\Windows\Data\MultiBindingExpression.cs (1)
108
get { return new
ReadOnlyCollection
<BindingExpressionBase>(MutableBindingExpressions); }
src\Framework\System\Windows\Data\PriorityBindingExpression.cs (1)
62
get { return new
ReadOnlyCollection
<BindingExpressionBase>(MutableBindingExpressions); }
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
761
lastBlock.ChildHighlightLayer.RaiseHighlightChangedEvent(new
ReadOnlyCollection
<TextSegment>(rangeArray));
778
cdbScan.ChildHighlightLayer.RaiseHighlightChangedEvent(new
ReadOnlyCollection
<TextSegment>(rangeArray));
805
cdbScan.ChildHighlightLayer.RaiseHighlightChangedEvent(new
ReadOnlyCollection
<TextSegment>(rangeArray));
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (1)
586
_textSegments = new
ReadOnlyCollection
<TextSegment>(parentSegments);
src\Framework\System\Windows\Documents\FixedTextView.cs (1)
743
_textSegments = new
ReadOnlyCollection
<TextSegment>(list);
src\Framework\System\Windows\Documents\Highlights.cs (1)
378
Changed(this, new LayerHighlightChangedEventArgs(new
ReadOnlyCollection
<TextSegment>(ranges), highlightLayer.OwnerType));
src\Framework\System\Windows\Documents\SpellerHighlightLayer.cs (1)
209
_ranges = new
ReadOnlyCollection
<TextSegment>(list);
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (1)
358
_ranges = new
ReadOnlyCollection
<TextSegment>(rangeArray);
src\Framework\System\Windows\Ink\Events.cs (2)
209
return new
ReadOnlyCollection
<UIElement>(_elements);
374
return new
ReadOnlyCollection
<GestureRecognitionResult>(_gestureRecognitionResults);
System (1)
compmod\system\collections\objectmodel\readonlyobservablecollection.cs (1)
44
public ReadOnlyObservableCollection(ObservableCollection<T> list) :
base
(list)
System.Activities (29)
System\Activities\Activity.cs (1)
37
internal static readonly ReadOnlyCollection<Constraint> EmptyConstraints = new
ReadOnlyCollection
<Constraint>(new Constraint[0]);
System\Activities\ActivityDelegate.cs (2)
106
return new
ReadOnlyCollection
<RuntimeDelegateArgument>(InternalGetRuntimeDelegateArguments());
137
this.delegateParameters = new
ReadOnlyCollection
<RuntimeDelegateArgument>(InternalGetRuntimeDelegateArguments());
System\Activities\ActivityInstance.cs (1)
1631
emptyChildren = new
ReadOnlyCollection
<ActivityInstance>(new ActivityInstance[0]);
System\Activities\DynamicUpdate\InstanceUpdateException.cs (3)
45
this.blockingActivities = new
ReadOnlyCollection
<ActivityBlockingUpdate>(blockingActivities);
54
this.blockingActivities = new
ReadOnlyCollection
<ActivityBlockingUpdate>(blockingActivities);
71
this.blockingActivities = new
ReadOnlyCollection
<ActivityBlockingUpdate>(new ActivityBlockingUpdate[0]);
System\Activities\ExclusiveHandle.cs (2)
44
return new
ReadOnlyCollection
<BookmarkScopeHandle>(new List<BookmarkScopeHandle>());
49
this.readOnlyBookmarkScopeCollection = new
ReadOnlyCollection
<BookmarkScopeHandle>(this.bookmarkScopes);
System\Activities\Expressions\TextExpression.cs (2)
30
private static readonly ReadOnlyCollection<string> defaultNamespaces = new
ReadOnlyCollection
<string>(new string[]
40
private static readonly ReadOnlyCollection<AssemblyReference> defaultReferences = new
ReadOnlyCollection
<AssemblyReference>(new AssemblyReference[]
System\Activities\HybridCollection.cs (3)
124
return new
ReadOnlyCollection
<T>(this.multipleItems);
128
return new
ReadOnlyCollection
<T>(new T[1] { this.singleItem });
132
return new
ReadOnlyCollection
<T>(new T[0]);
System\Activities\HybridDictionary.cs (4)
51
return new
ReadOnlyCollection
<TValue>(new List<TValue>() { this.singleItemValue });
55
return new
ReadOnlyCollection
<TValue>(new List<TValue>(this.dictionary.Values));
68
return new
ReadOnlyCollection
<TKey>(new List<TKey>() { this.singleItemKey });
72
return new
ReadOnlyCollection
<TKey>(new List<TKey>(this.dictionary.Keys));
System\Activities\Runtime\ActivityExecutor.cs (2)
527
emptyBookmarkInfoCollection = new
ReadOnlyCollection
<BookmarkInfo>(new List<BookmarkInfo>(0));
2585
return new
ReadOnlyCollection
<BookmarkInfo>(bookmarks);
System\Activities\Runtime\BookmarkScopeManager.cs (1)
331
return new
ReadOnlyCollection
<BookmarkInfo>(bookmarks);
System\Activities\RuntimeArgument.cs (1)
132
return new
ReadOnlyCollection
<string>(this.overloadGroupNames);
System\Activities\Tracking\ActivityStateRecord.cs (1)
26
static ReadOnlyCollection<string> wildcardCollection = new
ReadOnlyCollection
<string>(new List<string>(1) { "*" });
System\Activities\Validation\ActivityValidationServices.cs (2)
17
internal static readonly ReadOnlyCollection<Activity> EmptyChildren = new
ReadOnlyCollection
<Activity>(new Activity[0]);
19
internal static ReadOnlyCollection<ValidationError> EmptyValidationErrors = new
ReadOnlyCollection
<ValidationError>(new List<ValidationError>(0));
System\Activities\Validation\ValidationResults.cs (3)
28
this.allValidationErrors = new
ReadOnlyCollection
<ValidationError>(allValidationErrors);
100
this.warnings = new
ReadOnlyCollection
<ValidationError>(warningsList);
109
this.errors = new
ReadOnlyCollection
<ValidationError>(errorsList);
System\Activities\XamlIntegration\TextExpressionCompilerResults.cs (1)
48
this.messages = new
ReadOnlyCollection
<TextExpressionCompilerError>(messages);
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\DynamicActivityPropertyChooserViewModel.cs (2)
54
this.dropDownItems = new
ReadOnlyCollection
<DynamicActivityProperty>(new List<DynamicActivityProperty>());
139
this.DropDownItems = new
ReadOnlyCollection
<DynamicActivityProperty>(list);
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Model\EditingScope.cs (2)
90
return new
ReadOnlyCollection
<ModelItem>(this.itemsAdded.ToList());
98
return new
ReadOnlyCollection
<ModelItem>(this.itemsRemoved.ToList());
System.Core (13)
Microsoft\Scripting\Actions\CallSite.cs (3)
716
new
ReadOnlyCollection
<ParameterExpression>(vars),
717
new
ReadOnlyCollection
<Expression>(body)
722
new
ReadOnlyCollection
<ParameterExpression>(@params)
Microsoft\Scripting\Ast\BlockExpression.cs (1)
169
new
ReadOnlyCollection
<Expression>(new BlockExpressionList(provider, tObj)),
Microsoft\Scripting\Ast\Expression.cs (1)
303
new
ReadOnlyCollection
<Expression>(new ListArgumentProvider(provider, tObj)),
Microsoft\Scripting\Compiler\StackSpiller.cs (3)
813
testValues = new
ReadOnlyCollection
<Expression>(cloneTests);
834
cases = new
ReadOnlyCollection
<SwitchCase>(clone);
902
handlers = new
ReadOnlyCollection
<CatchBlock>(clone);
Microsoft\Scripting\Compiler\VariableBinder.cs (1)
146
body = new
ReadOnlyCollection
<Expression>(new[] { lambda.Body });
Microsoft\Scripting\Utils\TrueReadOnlyCollection.cs (1)
27
:
base
(list) {
System\Linq\Expressions\ExpressionVisitor.cs (2)
330
return new
ReadOnlyCollection
<T>(sequence.ToArray());
337
_defaultCollection = new
ReadOnlyCollection
<T>(new T[] { });
System\Security\Cryptography\ManifestSignatureInformation.cs (1)
156
internal ManifestSignatureInformationCollection(IList<ManifestSignatureInformation> signatureInformation) :
base
(signatureInformation) {
System.Data (2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\EditingScope.cs (2)
90
return new
ReadOnlyCollection
<ModelItem>(this.itemsAdded.ToList());
98
return new
ReadOnlyCollection
<ModelItem>(this.itemsRemoved.ToList());
System.Data.Entity (65)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (3)
29
return new System.Collections.ObjectModel.
ReadOnlyCollection
<TElement>(list);
404
(varList) => new System.Collections.ObjectModel.
ReadOnlyCollection
<DbVariableReferenceExpression>(varList)
1675
validRelatedRefs = new System.Collections.ObjectModel.
ReadOnlyCollection
<DbRelatedEntityRef>(new DbRelatedEntityRef[] { });
System\Data\Common\CommandTrees\ExpressionBuilder\Row.cs (1)
30
this.arguments = new System.Collections.ObjectModel.
ReadOnlyCollection
<KeyValuePair<string, DbExpression>>(Helpers.Prepend(columnValues, columnValue));
System\Data\Common\CommandTrees\Internal\ExpressionList.cs (1)
22
:
base
(elements)
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (1)
109
return new PatternMatchRuleProcessor(new System.Collections.ObjectModel.
ReadOnlyCollection
<PatternMatchRule>(rules)).Process;
System\Data\Common\DataRecordInfo.cs (2)
66
_fieldMetadata = new System.Collections.ObjectModel.
ReadOnlyCollection
<FieldMetadata>(fieldList);
92
_fieldMetadata = new System.Collections.ObjectModel.
ReadOnlyCollection
<FieldMetadata>(fieldList);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
3891
var gpExpressionLambdaVariables = new System.Collections.ObjectModel.
ReadOnlyCollection
<DbVariableReferenceExpression>(
System\Data\Common\Internal\Materialization\CoordinatorFactory.cs (2)
142
this.NestedCoordinators = new System.Collections.ObjectModel.
ReadOnlyCollection
<CoordinatorFactory>(nestedCoordinators);
143
this.RecordStateFactories = new System.Collections.ObjectModel.
ReadOnlyCollection
<RecordStateFactory>(recordStateFactories);
System\Data\Common\Internal\Materialization\RecordStateFactory.cs (4)
101
this.NestedRecordStateFactories = new System.Collections.ObjectModel.
ReadOnlyCollection
<RecordStateFactory>(nestedRecordStateFactories);
105
this.ColumnNames = new System.Collections.ObjectModel.
ReadOnlyCollection
<string>(propertyNames);
106
this.TypeUsages = new System.Collections.ObjectModel.
ReadOnlyCollection
<TypeUsage>(typeUsages);
129
this.IsColumnNested = new System.Collections.ObjectModel.
ReadOnlyCollection
<bool>(isColumnNested);
System\Data\Common\Utils\KeyToListMap.cs (2)
99
return new System.Collections.ObjectModel.
ReadOnlyCollection
<TValue>(m_map[key]);
111
valueCollection = new System.Collections.ObjectModel.
ReadOnlyCollection
<TValue>(list);
System\Data\EntityClient\EntityCommandDefinition.cs (1)
136
_parameters = new System.Collections.ObjectModel.
ReadOnlyCollection
<EntityParameter>(parameterList);
System\Data\EntityClient\EntityConnectionStringBuilder.cs (1)
164
return new System.Collections.ObjectModel.
ReadOnlyCollection
<string>(s_validKeywords);
System\Data\EntityModel\SchemaObjectModel\Function.cs (1)
217
return null != _returnTypeList ? new
ReadOnlyCollection
<ReturnType>(_returnTypeList) : null;
System\Data\Mapping\FunctionImportMapping.cs (8)
61
this.NormalizedEntityTypeMappings = new OM.
ReadOnlyCollection
<FunctionImportNormalizedEntityTypeMapping>(new List<FunctionImportNormalizedEntityTypeMapping>());
62
this.DiscriminatorColumns = new OM.
ReadOnlyCollection
<string>(new List<string>());
63
this.MappedEntityTypes = new OM.
ReadOnlyCollection
<EntityType>(new List<EntityType>());
167
this.NormalizedEntityTypeMappings = new OM.
ReadOnlyCollection
<FunctionImportNormalizedEntityTypeMapping>(
191
this.NormalizedEntityTypeMappings = new OM.
ReadOnlyCollection
<FunctionImportNormalizedEntityTypeMapping>(new List<FunctionImportNormalizedEntityTypeMapping>());
192
this.DiscriminatorColumns = new OM.
ReadOnlyCollection
<string>(new List<string>() { });
193
this.MappedEntityTypes = new OM.
ReadOnlyCollection
<EntityType>(new List<EntityType>() { });
530
this.ColumnConditions = new OM.
ReadOnlyCollection
<FunctionImportEntityTypeMappingCondition>(columnConditions.ToList());
System\Data\Mapping\FunctionImportMapping.ReturnTypeRenameMapping.cs (3)
42
this.IsOfTypeEntityTypes = new
ReadOnlyCollection
<EntityType>(
44
this.EntityTypes = new
ReadOnlyCollection
<EntityType>(
46
this.Conditions = new
ReadOnlyCollection
<FunctionImportEntityTypeMappingCondition>(
System\Data\Mapping\FunctionImportMappingNonComposable.cs (2)
40
this.ResultMappings = new OM.
ReadOnlyCollection
<FunctionImportStructuralTypeMappingKB>(
48
this.ResultMappings = new OM.
ReadOnlyCollection
<FunctionImportStructuralTypeMappingKB>(
System\Data\Mapping\StorageAssociationTypeMapping.cs (1)
88
return new
ReadOnlyCollection
<EdmType>(new AssociationType[] { m_relation });
System\Data\Mapping\StorageMappingItemCollection.cs (1)
508
return new
ReadOnlyCollection
<EdmMember>(interestingMembers.Distinct().ToList());
System\Data\Mapping\StorageModificationFunctionMapping.cs (1)
299
this.Members = new
ReadOnlyCollection
<EdmMember>(new List<EdmMember>(
System\Data\Mapping\StorageSetMapping.cs (1)
238
return new
ReadOnlyCollection
<Triple>(m_typeSpecificQueryViews.Keys.ToList());
System\Data\Mapping\Update\Internal\SourceInterpreter.cs (1)
52
return new
ReadOnlyCollection
<IEntityStateEntry>(interpreter.m_stateEntries);
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlBlock.cs (2)
35
m_slots = new
ReadOnlyCollection
<SlotInfo>(slotInfos);
36
m_children = new
ReadOnlyCollection
<CqlBlock>(children);
System\Data\Mapping\ViewGeneration\Structures\OpCellTreeNode.cs (2)
264
childBlock.Slots = new
ReadOnlyCollection
<SlotInfo>(paddedSlotInfo);
294
childBlock.Slots = new
ReadOnlyCollection
<SlotInfo>(childSlots);
System\Data\Metadata\Edm\ItemCollection.cs (1)
507
functionLookUpTable.Add(functionList[0].FullName, new System.Collections.ObjectModel.
ReadOnlyCollection
<EdmFunction>(functionList.ToArray()));
System\Data\Metadata\Edm\MemberCollection.cs (1)
78
return new System.Collections.ObjectModel.
ReadOnlyCollection
<EdmMember>(this);
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
224
System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> readOnlyTypes = new System.Collections.ObjectModel.
ReadOnlyCollection
<PrimitiveType>(primitiveTypes);
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (8)
196
System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> readOnlyTypes = new System.Collections.ObjectModel.
ReadOnlyCollection
<PrimitiveType>(primitiveTypes);
756
promotionTypes[i] = new System.Collections.ObjectModel.
ReadOnlyCollection
<PrimitiveType>(new PrimitiveType[] { _primitiveTypes[i] });
762
promotionTypes[(int)PrimitiveTypeKind.Byte] = new System.Collections.ObjectModel.
ReadOnlyCollection
<PrimitiveType>(new PrimitiveType[] {
775
promotionTypes[(int)PrimitiveTypeKind.Int16] = new System.Collections.ObjectModel.
ReadOnlyCollection
<PrimitiveType>(new PrimitiveType[] {
787
promotionTypes[(int)PrimitiveTypeKind.Int32] = new System.Collections.ObjectModel.
ReadOnlyCollection
<PrimitiveType>(new PrimitiveType[] {
798
promotionTypes[(int)PrimitiveTypeKind.Int64] = new System.Collections.ObjectModel.
ReadOnlyCollection
<PrimitiveType>(new PrimitiveType[] {
808
promotionTypes[(int)PrimitiveTypeKind.Single] = new System.Collections.ObjectModel.
ReadOnlyCollection
<PrimitiveType>(new PrimitiveType[] {
838
promotionTypes[(int)promotableKind] = new System.Collections.ObjectModel.
ReadOnlyCollection
<PrimitiveType>(new PrimitiveType[] {
System\Data\Metadata\Edm\ReadOnlyMetadataCollection.cs (1)
27
internal ReadOnlyMetadataCollection(IList<T> collection) :
base
(collection)
System\Data\Metadata\ObjectHelper.cs (5)
33
internal static readonly ReadOnlyCollection<KeyValuePair<string, object>> EmptyKeyValueStringObjectList = new
ReadOnlyCollection
<KeyValuePair<string, object>>(new KeyValuePair<string, object>[0]);
34
internal static readonly ReadOnlyCollection<string> EmptyStringList = new
ReadOnlyCollection
<string>(new string[0]);
35
internal static readonly ReadOnlyCollection<FacetDescription> EmptyFacetDescriptionEnumerable = new
ReadOnlyCollection
<FacetDescription>(new FacetDescription[0]);
36
internal static readonly ReadOnlyCollection<EdmFunction> EmptyEdmFunctionReadOnlyCollection = new
ReadOnlyCollection
<EdmFunction>(new EdmFunction[0]);
37
internal static readonly ReadOnlyCollection<PrimitiveType> EmptyPrimitiveTypeReadOnlyCollection = new
ReadOnlyCollection
<PrimitiveType>(new PrimitiveType[0]);
System\Data\Metadata\TypeSemantics.cs (1)
1174
return new objectModel.
ReadOnlyCollection
<PrimitiveType>(commonTypes);
System\Data\Objects\ELinq\ExpressionVisitorHelpers.cs (2)
41
return new
ReadOnlyCollection
<T>(sequence.ToArray());
51
_defaultCollection = new
ReadOnlyCollection
<T>(new T[] { });
System\Data\Query\PlanCompiler\TransformationRules.cs (3)
693
ReadOnlyCollection<InternalTrees.Rule> NoRules = new
ReadOnlyCollection
<InternalTrees.Rule>(new InternalTrees.Rule[0]);
713
rulesPerType[i] = new
ReadOnlyCollection
<InternalTrees.Rule>(lookupTable[i].ToArray());
720
return new
ReadOnlyCollection
<ReadOnlyCollection<InternalTrees.Rule>>(rulesPerType);
System.Data.Linq (1)
SqlClient\Query\Funcletizer.cs (1)
315
return new
ReadOnlyCollection
<Expression>(list);
System.Data.Services (12)
parent\Client\System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (1)
368
return new
ReadOnlyCollection
<Expression>(list);
System\Data\Services\ETagAttribute.cs (2)
39
this.propertyNames = new
ReadOnlyCollection
<string>(new List<string>(new string[1] { propertyName }));
55
this.propertyNames = new
ReadOnlyCollection
<string>(new List<string>(propertyNames));
System\Data\Services\IgnorePropertiesAttribute.cs (2)
41
this.propertyNames = new
ReadOnlyCollection
<string>(new List<string>(new string[1] { propertyName }));
57
this.propertyNames = new
ReadOnlyCollection
<string>(new List<string>(propertyNames));
System\Data\Services\Providers\ResourceType.cs (5)
36
internal static readonly ReadOnlyCollection<ResourceProperty> EmptyProperties = new
ReadOnlyCollection
<ResourceProperty>(new ResourceProperty[0]);
274
readOnlyProperties = new
ReadOnlyCollection
<ResourceProperty>(this.propertiesDeclaredOnThisType ?? ResourceType.EmptyProperties);
323
readOnlyKeyProperties = new
ReadOnlyCollection
<ResourceProperty>(key);
351
ReadOnlyCollection<ResourceProperty> etag = new
ReadOnlyCollection
<ResourceProperty>(this.Properties.Where(p => p.IsOfKind(ResourcePropertyKind.ETag)).ToList());
1025
readOnlyAllProps = new
ReadOnlyCollection
<ResourceProperty>(allProps);
System\Data\Services\Providers\ServiceOperation.cs (2)
36
private static ReadOnlyCollection<ServiceOperationParameter> emptyParameterCollection = new
ReadOnlyCollection
<ServiceOperationParameter>(new ServiceOperationParameter[0]);
104
this.parameters = new
ReadOnlyCollection
<ServiceOperationParameter>(new List<ServiceOperationParameter>(parameters));
System.Data.Services.Client (3)
System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (1)
368
return new
ReadOnlyCollection
<Expression>(list);
System\Data\Services\Client\DataServiceKeyAttribute.cs (2)
37
this.keyNames = new
ReadOnlyCollection
<string>(new string[1] { keyName });
54
this.keyNames = new
ReadOnlyCollection
<string>(keyNames);
System.IdentityModel (6)
System\IdentityModel\Configuration\IdentityConfiguration.cs (2)
324
SecurityTokenResolver serviceCertificateResolver = SecurityTokenResolver.CreateDefaultSecurityTokenResolver(new
ReadOnlyCollection
<SecurityToken>(
358
SecurityTokenResolver knownCertificateTokenResolver = SecurityTokenResolver.CreateDefaultSecurityTokenResolver(new
ReadOnlyCollection
<SecurityToken>(tokens), false);
System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
40
this.readOnlyClaimSets = new
ReadOnlyCollection
<ClaimSet>(this.claimSets);
System\IdentityModel\SecurityUtils.cs (1)
1006
public static ReadOnlyCollection<T> Instance = new
ReadOnlyCollection
<T>(new List<T>());
System\IdentityModel\Tokens\SessionSecurityToken.cs (2)
324
_securityKeys = new
ReadOnlyCollection
<SecurityKey>(new SecurityKey[] { new InMemorySymmetricSecurityKey(key) });
513
_securityKeys = new
ReadOnlyCollection
<SecurityKey>(new SecurityKey[] { new InMemorySymmetricSecurityKey(key) });
System.Runtime.Caching (1)
System\Caching\MemoryCacheEntryChangeMonitor.cs (1)
109
public override ReadOnlyCollection<string> CacheKeys { get { return new
ReadOnlyCollection
<string>(_keys); } }
System.Runtime.DurableInstancing (1)
System\Runtime\DurableInstancing\InstanceView.cs (1)
210
this.queryResults = new
ReadOnlyCollection
<InstanceStoreQueryResult>(QueryResultsBacking);
System.Runtime.Serialization (4)
System\Runtime\Serialization\DataContractSerializer.cs (2)
197
knownTypeCollection = new
ReadOnlyCollection
<Type>(knownTypeList);
201
knownTypeCollection = new
ReadOnlyCollection
<Type>(Globals.EmptyTypeArray);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (2)
132
knownTypeCollection = new
ReadOnlyCollection
<Type>(knownTypeList);
136
knownTypeCollection = new
ReadOnlyCollection
<Type>(Globals.EmptyTypeArray);
System.ServiceModel (54)
System\ServiceModel\Channels\AddressHeaderCollection.cs (2)
24
:
base
(new List<AddressHeader>())
29
:
base
(new List<AddressHeader>(addressHeaders))
System\ServiceModel\Channels\CorrelationCallbackMessageProperty.cs (1)
15
static ReadOnlyCollection<string> emptyNeededData = new
ReadOnlyCollection
<string>(new List<string>(0));
System\ServiceModel\Channels\CorrelationDataSourceHelper.cs (2)
22
this.dataSources = new
ReadOnlyCollection
<CorrelationDataDescription>(new List<CorrelationDataDescription>(dataSources));
35
this.dataSources = new
ReadOnlyCollection
<CorrelationDataDescription>(newData);
System\ServiceModel\Channels\CorrelationMessageProperty.cs (5)
17
static readonly ReadOnlyCollection<InstanceKey> emptyInstanceKeyList = new
ReadOnlyCollection
<InstanceKey>(new List<InstanceKey>(0));
58
this.additionalKeys = new
ReadOnlyCollection
<InstanceKey>(additionalKeysList);
77
this.transientCorrelations = new
ReadOnlyCollection
<InstanceKey>(transientCorrelationsList);
179
this.additionalKeys = new
ReadOnlyCollection
<InstanceKey>(value);
200
this.transientCorrelations = new
ReadOnlyCollection
<InstanceKey>(value);
System\ServiceModel\Channels\PeerIPHelper.cs (2)
118
return new
ReadOnlyCollection
<IPAddress>(cloneArray);
128
return new
ReadOnlyCollection
<IPAddress>(cloneArray);
System\ServiceModel\Channels\PeerMaintainer.cs (1)
571
return (new
ReadOnlyCollection
<PeerNodeAddress>(reply));
System\ServiceModel\Channels\PeerSecurityHelpers.cs (1)
387
this.keys = new
ReadOnlyCollection
<SecurityKey>(new List<SecurityKey>());
System\ServiceModel\Channels\PnrpPeerResolver.cs (3)
403
result = new PeerNodeAddress(new EndpointAddress(uriBuilder.Uri), new
ReadOnlyCollection
<IPAddress>(addresses));
688
return new
ReadOnlyCollection
<PeerNodeAddress>(new List<PeerNodeAddress>());
716
return new
ReadOnlyCollection
<PeerNodeAddress>(nodeAddressList);
System\ServiceModel\Channels\RedirectionException.cs (2)
81
this.Locations = new
ReadOnlyCollection
<RedirectionLocation>(locations);
97
this.Locations = new
ReadOnlyCollection
<RedirectionLocation>(locations);
System\ServiceModel\Channels\SecurityChannelListener.cs (1)
207
return (T)(object)(new AggregateLogonTokenCacheManager(new
ReadOnlyCollection
<ILogonTokenCacheManager>(cacheManagers)));
System\ServiceModel\Configuration\CustomBindingCollectionElement.cs (1)
39
return new
ReadOnlyCollection
<IBindingConfigurationElement>(configuredBindings);
System\ServiceModel\Configuration\StandardBindingCollectionElement.cs (1)
39
return new
ReadOnlyCollection
<IBindingConfigurationElement>(configuredBindings);
System\ServiceModel\Configuration\StandardEndpointCollectionElement.cs (1)
40
return new
ReadOnlyCollection
<StandardEndpointElement>(configuredEndpoints);
System\ServiceModel\Dispatcher\ActionMessageFilter.cs (1)
68
this.actionSet = new
ReadOnlyCollection
<string>(new List<string>(this.actions.Keys));
System\ServiceModel\OperationContext.cs (1)
330
return new System.Collections.ObjectModel.
ReadOnlyCollection
<SupportingTokenSpecification>(
System\ServiceModel\PeerNodeAddress.cs (2)
33
set { ipAddresses = new
ReadOnlyCollection
<IPAddress>((value == null) ? new IPAddress[0] : value); }
76
this.ipAddresses = new
ReadOnlyCollection
<IPAddress>(new IPAddress[0]);
System\ServiceModel\PeerResolvers\PeerDefaultCustomResolverClient.cs (2)
143
ReadOnlyCollection<IPAddress> addresses = new
ReadOnlyCollection
<IPAddress>(addresslist);
366
return new
ReadOnlyCollection
<PeerNodeAddress>(output_addresses);
System\ServiceModel\Security\AcceptorSessionSymmetricMessageSecurityProtocol.cs (1)
121
this.sessionResolverList = new
ReadOnlyCollection
<SecurityTokenResolver>(tmp);
System\ServiceModel\Security\AcceptorSessionSymmetricTransportSecurityProtocol.cs (1)
61
this.sessionTokenResolverList = new
ReadOnlyCollection
<SecurityTokenResolver>(tmp);
System\ServiceModel\Security\AsymmetricSecurityProtocolFactory.cs (1)
233
this.recipientOutOfBandTokenResolverList = new
ReadOnlyCollection
<SecurityTokenResolver>(tmp);
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (1)
39
= new
ReadOnlyCollection
<IAuthorizationPolicy>(
System\ServiceModel\Security\IssuedTokensHeader.cs (2)
71
this.tokenIssuances = new
ReadOnlyCollection
<RequestSecurityTokenResponse>(coll);
107
this.tokenIssuances = new
ReadOnlyCollection
<RequestSecurityTokenResponse>(coll);
System\ServiceModel\Security\MessagePartSpecification.cs (1)
32
return new
ReadOnlyCollection
<XmlQualifiedName>(headerTypes);
System\ServiceModel\Security\MessageSecurityTokenVersion.cs (1)
159
this.supportedSpecs = new
ReadOnlyCollection
<string>(supportedSpecs);
System\ServiceModel\Security\RequestSecurityToken.cs (1)
573
this.requestProperties = new
ReadOnlyCollection
<XmlElement>(this.requestProperties);
System\ServiceModel\Security\SecurityMessageProperty.cs (1)
304
return new
ReadOnlyCollection
<IAuthorizationPolicy>(policies);
System\ServiceModel\Security\SecurityProtocol.cs (3)
93
emptyTokenProviders = new
ReadOnlyCollection
<SupportingTokenProviderSpecification>(new List<SupportingTokenProviderSpecification>());
425
new
ReadOnlyCollection
<SupportingTokenProviderSpecification>((Collection<SupportingTokenProviderSpecification>)this.channelSupportingTokenProviderSpecification);
666
return new
ReadOnlyCollection
<SecurityTokenResolver>(outOfBandResolvers);
System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
1060
new
ReadOnlyCollection
<SupportingTokenAuthenticatorSpecification>((Collection<SupportingTokenAuthenticatorSpecification>)this.channelSupportingTokenAuthenticatorSpecification);
System\ServiceModel\Security\SecurityUtils.cs (1)
2430
public static ReadOnlyCollection<T> Instance = new
ReadOnlyCollection
<T>(new List<T>());
System\ServiceModel\Security\ServiceCredentialsSecurityTokenManager.cs (1)
274
outOfBandTokenResolver = (outOfBandTokens.Count > 0) ? SecurityTokenResolver.CreateDefaultSecurityTokenResolver(new
ReadOnlyCollection
<SecurityToken>(outOfBandTokens), false) : null;
System\ServiceModel\Security\SymmetricSecurityProtocolFactory.cs (1)
179
this.recipientOutOfBandTokenResolverList = new
ReadOnlyCollection
<SecurityTokenResolver>(tmp);
System\ServiceModel\Security\WSTrustChannel.cs (1)
521
new
ReadOnlyCollection
<IAuthorizationPolicy>(new List<IAuthorizationPolicy>()));
System\ServiceModel\ServiceHost.cs (2)
126
externalBaseAddresses = new
ReadOnlyCollection
<Uri>(new List<Uri>(this.baseAddresses));
509
return new
ReadOnlyCollection
<ServiceEndpoint>(defaultEndpoints);
System\UriTemplate.cs (5)
1030
this.keys = new
ReadOnlyCollection
<string>(new List<string>(this.defaults.Keys));
1031
this.values = new
ReadOnlyCollection
<string>(new List<string>(this.defaults.Values));
1161
emptyStringCollection = new
ReadOnlyCollection
<string>(new List<string>());
1180
Interlocked.CompareExchange<ReadOnlyCollection<string>>(ref this.pathSegmentVariableNamesSnapshot, new
ReadOnlyCollection
<string>(
1192
Interlocked.CompareExchange<ReadOnlyCollection<string>>(ref this.queryValueVariableNamesSnapshot, new
ReadOnlyCollection
<string>(
System.ServiceModel.Activities (5)
System\ServiceModel\Activities\Description\CorrelationQueryBehavior.cs (2)
197
this.receiveNames = new
ReadOnlyCollection
<string>(receiveNames);
198
this.sendNames = new
ReadOnlyCollection
<string>(sendNames);
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (2)
207
additionalKeys = new
ReadOnlyCollection
<InstanceKey>(new InstanceKey[] { });
270
static ReadOnlyCollection<InstanceKey> emptyKeyCollection = new
ReadOnlyCollection
<InstanceKey>(new InstanceKey[] { });
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (1)
70
static ReadOnlyCollection<BookmarkInfo> emptyBookmarkInfoCollection = new
ReadOnlyCollection
<BookmarkInfo>(new List<BookmarkInfo>());
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\DiscoveryServiceExtension.cs (1)
22
this.readOnlyPublishedEndpoints = new
ReadOnlyCollection
<EndpointDiscoveryMetadata>(this.publishedEndpoints);
System.ServiceModel.Internals (1)
System\Runtime\ReadOnlyKeyedCollection.cs (1)
14
:
base
(innerCollection)
System.Web (2)
HttpContext.cs (1)
261
_webSocketRequestedProtocols = new
ReadOnlyCollection
<string>(requestedProtocols ?? new string[0]);
ModelBinding\ComplexModel.cs (1)
19
PropertyMetadata = new
ReadOnlyCollection
<ModelMetadata>(propertyMetadata.ToList());
System.Web.DataVisualization (2)
Common\General\Selection.cs (2)
1375
this.Markers = new
ReadOnlyCollection
<PointF>( new PointF[] {});
2493
result.Markers = new
ReadOnlyCollection
<PointF>((PointF[])list.ToArray(typeof(PointF)));
System.Web.DynamicData (6)
DynamicData\MetaModel.cs (1)
59
_tablesRO = new
ReadOnlyCollection
<MetaTable>(_tables);
DynamicData\MetaTable.cs (1)
400
Columns = new
ReadOnlyCollection
<MetaColumn>(columns);
DynamicData\ModelProviders\DLinqAssociationProvider.cs (1)
54
ForeignKeyNames = new
ReadOnlyCollection
<string>(foreignKeyNames);
DynamicData\ModelProviders\DLinqDataModelProvider.cs (1)
34
_roTables = new
ReadOnlyCollection
<TableProvider>(DLinqTables);
DynamicData\ModelProviders\DLinqTableProvider.cs (1)
42
_roColumns = new
ReadOnlyCollection
<ColumnProvider>(_columns);
DynamicData\ModelProviders\EFTableProvider.cs (1)
39
_roColumns = new
ReadOnlyCollection
<ColumnProvider>(columns);
System.Web.Extensions (9)
ClientServices\Providers\SettingsSavedEventArgs.cs (1)
18
_failedSettingsList = new
ReadOnlyCollection
<string>(list);
UI\ScriptManager.cs (7)
1125
return new
ReadOnlyCollection
<RegisteredArrayDeclaration>(ScriptRegistration.ScriptArrays);
1131
return new
ReadOnlyCollection
<RegisteredScript>(ScriptRegistration.ScriptBlocks);
1136
return new
ReadOnlyCollection
<RegisteredDisposeScript>(ScriptRegistration.ScriptDisposes);
1141
return new
ReadOnlyCollection
<RegisteredExpandoAttribute>(ScriptRegistration.ScriptExpandos);
1146
return new
ReadOnlyCollection
<RegisteredHiddenField>(ScriptRegistration.ScriptHiddenFields);
1151
return new
ReadOnlyCollection
<RegisteredScript>(ScriptRegistration.ScriptSubmitStatements);
1156
return new
ReadOnlyCollection
<RegisteredScript>(ScriptRegistration.ScriptStartupBlocks);
UI\WebControls\QueryableDataSource.cs (1)
64
_viewNames = new
ReadOnlyCollection
<string>(new[] { DefaultViewName });
System.Windows.Forms.DataVisualization (2)
Common\General\Selection.cs (2)
1375
this.Markers = new
ReadOnlyCollection
<PointF>( new PointF[] {});
2493
result.Markers = new
ReadOnlyCollection
<PointF>((PointF[])list.ToArray(typeof(PointF)));
System.Workflow.Activities (3)
StateMachineWorkflowInstance.cs (3)
283
return new
ReadOnlyCollection
<string>(stateHistory.ToArray());
293
return new
ReadOnlyCollection
<string>(stateHistory.ToArray());
316
ReadOnlyCollection<string> history = new
ReadOnlyCollection
<string>(stateHistory.ToArray());
System.Workflow.ComponentModel (10)
AuthoringOM\Activity.cs (1)
1387
this.SetValue(SynchronizationHandlesProperty, new
ReadOnlyCollection
<string>(new List<string>(handles)));
AuthoringOM\ActivityExecutionContextCollection.cs (1)
52
return new
ReadOnlyCollection
<ActivityExecutionContext>(this.executionContexts);
AuthoringOM\Behaviors\CancellationHandlerDesigner.cs (1)
39
return new
ReadOnlyCollection
<DesignerView>(views);
AuthoringOM\Behaviors\CompensatableTransactionScopeActivityDesigner.cs (1)
34
return new
ReadOnlyCollection
<DesignerView>(views);
AuthoringOM\Behaviors\CompensationDesigner.cs (1)
34
return new
ReadOnlyCollection
<DesignerView>(views);
AuthoringOM\Behaviors\ExceptionHandlerDesigner.cs (1)
38
return new
ReadOnlyCollection
<DesignerView>(views);
AuthoringOM\Behaviors\ExceptionHandlersDesigner.cs (1)
40
return new
ReadOnlyCollection
<DesignerView>(views);
AuthoringOM\Behaviors\TransactionScopeDesigner.cs (1)
34
return new
ReadOnlyCollection
<DesignerView>(views);
AuthoringOM\Compiler\XomlCompiler.cs (1)
232
this.authorizedTypes = new
ReadOnlyCollection
<AuthorizedType>(authorizedTypes);
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (1)
2283
WorkflowMarkupSerializer.StaticAuthorizedTypes = new
ReadOnlyCollection
<AuthorizedType>(authorizedTypes);
System.Workflow.Runtime (8)
KeyedPriorityQueue.cs (2)
137
return new
ReadOnlyCollection
<V>(values);
150
return new
ReadOnlyCollection
<K>(keys);
System\Activities\Statements\InteropEnvironment.cs (1)
22
static readonly ReadOnlyCollection<IComparable> emptyList = new
ReadOnlyCollection
<IComparable>(new IComparable[] { });
WorkflowDefinitionDispenser.cs (3)
66
return new
ReadOnlyCollection
<PropertyInfo>(this.workflowOutParameters[workflowType]);
540
keys = new
ReadOnlyCollection
<K>(keyList);
546
values = new
ReadOnlyCollection
<Activity>(list);
WorkflowRuntime.cs (2)
1053
return new
ReadOnlyCollection
<object>(retval);
1070
return new
ReadOnlyCollection
<T>(l);
System.WorkflowServices (2)
System\ServiceModel\Dispatcher\WorkflowRequestContext.cs (1)
48
this.inputs = new
ReadOnlyCollection
<object>(inputs);
System\Workflow\Activities\ReceiveActivity.cs (1)
1724
new
ReadOnlyCollection
<ClaimSet>(new List<ClaimSet>()) :
WindowsBase (5)
Base\System\IO\Packaging\PackageDigitalSignature.cs (2)
91
_signedParts = new
ReadOnlyCollection
<Uri>(_processor.PartManifest);
110
_signedRelationshipSelectors = new
ReadOnlyCollection
<PackageRelationshipSelector>(_processor.RelationshipManifest);
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (1)
170
_signatureList = new
ReadOnlyCollection
<PackageDigitalSignature>(_signatures);
Base\System\Security\RightsManagement\CryptoProvider.cs (1)
320
_boundGrantReadOnlyCollection = new
ReadOnlyCollection
<ContentGrant> (grantList);
Base\System\Security\RightsManagement\SecureEnvironment.cs (1)
206
return new
ReadOnlyCollection
<ContentUser>(userList);