Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Compiler / Validation / ValidationErrorCollection.cs / 1305376 / ValidationErrorCollection.cs
namespace System.Workflow.ComponentModel.Compiler { using System; using System.Collections.ObjectModel; using System.Collections.Generic; #region ValidationErrorCollection [Serializable()] public sealed class ValidationErrorCollection : Collection{ public ValidationErrorCollection() { } public ValidationErrorCollection(ValidationErrorCollection value) { this.AddRange(value); } public ValidationErrorCollection(IEnumerable value) { if (value == null) throw new ArgumentNullException("value"); this.AddRange(value); } protected override void InsertItem(int index, ValidationError item) { if (item == null) throw new ArgumentNullException("item"); base.InsertItem(index, item); } protected override void SetItem(int index, ValidationError item) { if (item == null) throw new ArgumentNullException("item"); base.SetItem(index, item); } public void AddRange(IEnumerable value) { if (value == null) throw new ArgumentNullException("value"); foreach (ValidationError error in value) this.Add(error); } public bool HasErrors { get { if (Count > 0) { foreach (ValidationError e in this) { if (e != null && !e.IsWarning) return true; } } return false; } } public bool HasWarnings { get { if (Count > 0) { foreach (ValidationError e in this) { if (e != null && e.IsWarning) return true; } } return false; } } public ValidationError[] ToArray() { ValidationError[] errorsArray = new ValidationError[this.Count]; this.CopyTo(errorsArray, 0); return errorsArray; } } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReferencedType.cs
- IntMinMaxAggregationOperator.cs
- HScrollBar.cs
- Vector3DAnimation.cs
- SrgsElement.cs
- NotificationContext.cs
- SqlDataSourceCache.cs
- TextDecorationCollection.cs
- SplitterEvent.cs
- TouchPoint.cs
- GradientSpreadMethodValidation.cs
- TextFormatterHost.cs
- ErasingStroke.cs
- TypeDelegator.cs
- BitmapMetadataBlob.cs
- CompilationUnit.cs
- PersistenceParticipant.cs
- ValidationPropertyAttribute.cs
- infer.cs
- PrintDialogException.cs
- HostExecutionContextManager.cs
- CompoundFileDeflateTransform.cs
- Int16Storage.cs
- TreeNode.cs
- ContentElement.cs
- SqlDataSourceCommandEventArgs.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- NavigationPropertyAccessor.cs
- TableColumn.cs
- IPPacketInformation.cs
- UpdateExpressionVisitor.cs
- NativeRightsManagementAPIsStructures.cs
- Message.cs
- StringKeyFrameCollection.cs
- XmlSchemaAnnotated.cs
- HttpListenerContext.cs
- BaseProcessor.cs
- HiddenFieldPageStatePersister.cs
- SafeNativeMethodsOther.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- IsolatedStorage.cs
- CommonGetThemePartSize.cs
- StdValidatorsAndConverters.cs
- PageResolution.cs
- CollectionBase.cs
- HScrollProperties.cs
- FlatButtonAppearance.cs
- HttpCookiesSection.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- ToolStripDropDownItem.cs
- UserPreferenceChangingEventArgs.cs
- PrePrepareMethodAttribute.cs
- SrgsElementFactoryCompiler.cs
- ImageListUtils.cs
- EntryPointNotFoundException.cs
- WebControl.cs
- ChangeBlockUndoRecord.cs
- TypedRowHandler.cs
- XmlHierarchyData.cs
- SelectionListComponentEditor.cs
- ObjectViewListener.cs
- BooleanFacetDescriptionElement.cs
- IdentityReference.cs
- HScrollProperties.cs
- ResXResourceWriter.cs
- FormViewPageEventArgs.cs
- ResXResourceWriter.cs
- BrowserTree.cs
- DataViewManagerListItemTypeDescriptor.cs
- SafeFileMappingHandle.cs
- _PooledStream.cs
- ComboBoxHelper.cs
- Button.cs
- LazyTextWriterCreator.cs
- MachineKeyConverter.cs
- filewebrequest.cs
- PersistenceTypeAttribute.cs
- PathSegmentCollection.cs
- ClientConfigurationSystem.cs
- DescendentsWalker.cs
- FamilyTypefaceCollection.cs
- XsltInput.cs
- EntityContainer.cs
- ConfigXmlText.cs
- BindToObject.cs
- FieldBuilder.cs
- ConsoleKeyInfo.cs
- FontStyleConverter.cs
- Help.cs
- SortQuery.cs
- ChtmlPageAdapter.cs
- __TransparentProxy.cs
- FocusWithinProperty.cs
- ValidationException.cs
- ExpressionBindingCollection.cs
- ComboBoxRenderer.cs
- ContentIterators.cs
- MenuItem.cs
- OleDbMetaDataFactory.cs
- ShapingWorkspace.cs