Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Design / system / Data / Entity / Design / Common / EDesignUtil.cs / 1305376 / EDesignUtil.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- namespace System.Data.Services.Design.Common { using System; internal static class EDesignUtil { //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// // // Helper Functions // static internal T CheckArgumentNull(T value, string parameterName) where T : class { if (null == value) { throw Error.ArgumentNull(parameterName); } return value; } static internal void CheckStringArgument(string value, string parameterName) { // Throw ArgumentNullException when string is null CheckArgumentNull(value, parameterName); // Throw ArgumentException when string is empty if (value.Length == 0) { throw InvalidStringArgument(parameterName); } } static internal LanguageOption CheckLanguageOptionArgument(LanguageOption value, string paramName) { if (value == LanguageOption.GenerateCSharpCode || value == LanguageOption.GenerateVBCode) { return value; } throw Error.ArgumentOutOfRange(paramName); } static internal DataServiceCodeVersion CheckDataServiceCodeVersionArgument(DataServiceCodeVersion value, string paramName) { if (value == DataServiceCodeVersion.V1 || value == DataServiceCodeVersion.V2) { return value; } throw Error.ArgumentOutOfRange(paramName); } static internal ArgumentException InvalidStringArgument(string parameterName) { ArgumentException e = new ArgumentException(Strings.InvalidStringArgument(parameterName)); return e; } static internal InvalidOperationException InvalidOperation(string error) { InvalidOperationException e = new InvalidOperationException(error); return e; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WinFormsSpinner.cs
- ObjectViewFactory.cs
- SiteMapProvider.cs
- BooleanKeyFrameCollection.cs
- DictionaryEntry.cs
- BmpBitmapEncoder.cs
- DataGridViewColumn.cs
- RegexInterpreter.cs
- MemoryFailPoint.cs
- TimelineGroup.cs
- listviewsubitemcollectioneditor.cs
- PolyLineSegmentFigureLogic.cs
- NetworkAddressChange.cs
- Debugger.cs
- Parser.cs
- configsystem.cs
- StandardCommandToolStripMenuItem.cs
- XmlQualifiedNameTest.cs
- ResourceManagerWrapper.cs
- SpecularMaterial.cs
- Rotation3D.cs
- NameSpaceEvent.cs
- Drawing.cs
- RTTrackingProfile.cs
- XMLSchema.cs
- MessageLoggingFilterTraceRecord.cs
- CacheVirtualItemsEvent.cs
- Int64AnimationUsingKeyFrames.cs
- DirectoryObjectSecurity.cs
- DataControlFieldCell.cs
- DataSourceView.cs
- DateTimeConverter2.cs
- CheckBoxField.cs
- Point3DCollectionValueSerializer.cs
- Roles.cs
- StringOutput.cs
- AppearanceEditorPart.cs
- ChameleonKey.cs
- ClipboardProcessor.cs
- TableLayoutPanelCellPosition.cs
- XmlDomTextWriter.cs
- IssuanceLicense.cs
- Debugger.cs
- HighlightComponent.cs
- ChannelDispatcherCollection.cs
- Subtree.cs
- AppModelKnownContentFactory.cs
- ping.cs
- SmtpReplyReaderFactory.cs
- TempFiles.cs
- RowParagraph.cs
- FileEnumerator.cs
- CheckBoxList.cs
- Attribute.cs
- GridEntry.cs
- InheritanceAttribute.cs
- ToolStripItemImageRenderEventArgs.cs
- JoinSymbol.cs
- XmlUtil.cs
- SelectionEditor.cs
- FrugalMap.cs
- SqlTransaction.cs
- AngleUtil.cs
- SHA1.cs
- BitmapEffectInputData.cs
- WebPartManagerInternals.cs
- CollectionsUtil.cs
- DomNameTable.cs
- XmlCharCheckingReader.cs
- QueryInterceptorAttribute.cs
- ReachFixedPageSerializer.cs
- DivideByZeroException.cs
- DescendantOverDescendantQuery.cs
- ReferentialConstraint.cs
- Highlights.cs
- MexHttpBindingCollectionElement.cs
- Trigger.cs
- SmtpDigestAuthenticationModule.cs
- CorrelationScope.cs
- ReaderWriterLockWrapper.cs
- ResourcePart.cs
- XPathSelectionIterator.cs
- RuleValidation.cs
- VectorKeyFrameCollection.cs
- OptimalTextSource.cs
- LinkDesigner.cs
- RuleSettingsCollection.cs
- ToolStrip.cs
- XamlTreeBuilderBamlRecordWriter.cs
- SynchronizedInputPattern.cs
- SqlRetyper.cs
- PolyQuadraticBezierSegment.cs
- DataGridViewImageCell.cs
- PersistenceTypeAttribute.cs
- XmlSiteMapProvider.cs
- ArrayWithOffset.cs
- GacUtil.cs
- Transform3DGroup.cs
- Facet.cs
- CustomLineCap.cs