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
- WeakEventTable.cs
- TextEditorSelection.cs
- COM2PropertyBuilderUITypeEditor.cs
- HtmlContainerControl.cs
- MouseActionValueSerializer.cs
- MultiByteCodec.cs
- SQLByte.cs
- StickyNoteContentControl.cs
- ExpressionLexer.cs
- SelectionItemProviderWrapper.cs
- BitmapEffectGroup.cs
- FileUtil.cs
- CompoundFileDeflateTransform.cs
- SR.cs
- HierarchicalDataBoundControl.cs
- StoreItemCollection.cs
- LinqDataSource.cs
- ControlCachePolicy.cs
- BaseConfigurationRecord.cs
- formatstringdialog.cs
- MsmqIntegrationSecurity.cs
- lengthconverter.cs
- XmlSchemaObject.cs
- SecurityHelper.cs
- X509PeerCertificateElement.cs
- IndependentAnimationStorage.cs
- SchemaManager.cs
- Hash.cs
- InfoCardMasterKey.cs
- LoginViewDesigner.cs
- DummyDataSource.cs
- XmlIlGenerator.cs
- Int32AnimationBase.cs
- SortDescriptionCollection.cs
- PageEventArgs.cs
- TabControlEvent.cs
- cookiecollection.cs
- IDQuery.cs
- _LoggingObject.cs
- SerializationEventsCache.cs
- URLMembershipCondition.cs
- PropertyTab.cs
- ScrollContentPresenter.cs
- XmlWrappingReader.cs
- ResizingMessageFilter.cs
- TypeCodeDomSerializer.cs
- COM2ExtendedUITypeEditor.cs
- CodeTypeMemberCollection.cs
- MetafileHeaderWmf.cs
- TemplateBindingExtensionConverter.cs
- CultureInfoConverter.cs
- BStrWrapper.cs
- SimpleHandlerFactory.cs
- TextEndOfParagraph.cs
- Config.cs
- WebPartManagerDesigner.cs
- FormViewUpdateEventArgs.cs
- TextEffectResolver.cs
- DomainUpDown.cs
- SqlDataSourceView.cs
- PropertyChangingEventArgs.cs
- MethodBuilder.cs
- GradientBrush.cs
- ColumnMap.cs
- GenericNameHandler.cs
- DetailsViewRowCollection.cs
- TimelineCollection.cs
- ImageSourceConverter.cs
- FunctionImportMapping.cs
- DateTimeValueSerializer.cs
- RegexCompilationInfo.cs
- RegistrationProxy.cs
- EventLogPermissionEntry.cs
- ContentOnlyMessage.cs
- SEHException.cs
- SemaphoreFullException.cs
- FrameworkElementAutomationPeer.cs
- DesignerActionGlyph.cs
- OneOfConst.cs
- XslException.cs
- ResourceAssociationSetEnd.cs
- BaseResourcesBuildProvider.cs
- StylusPointProperties.cs
- Vars.cs
- WebPartDisplayModeCollection.cs
- TogglePatternIdentifiers.cs
- SessionIDManager.cs
- WriteStateInfoBase.cs
- LineServicesCallbacks.cs
- Model3DCollection.cs
- Util.cs
- ZipIOExtraFieldZip64Element.cs
- BooleanExpr.cs
- SchemaCompiler.cs
- Accessible.cs
- EncryptRequest.cs
- DiagnosticTrace.cs
- CellCreator.cs
- ByteAnimation.cs
- ComponentManagerBroker.cs