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
- PersonalizationAdministration.cs
- StreamGeometryContext.cs
- AssemblyResourceLoader.cs
- PlatformNotSupportedException.cs
- GridToolTip.cs
- CqlParser.cs
- DataColumnPropertyDescriptor.cs
- String.cs
- FactoryId.cs
- QueryCacheManager.cs
- Ops.cs
- VectorAnimationUsingKeyFrames.cs
- Stopwatch.cs
- _NestedSingleAsyncResult.cs
- DefaultAsyncDataDispatcher.cs
- AspCompat.cs
- DeclaredTypeElementCollection.cs
- OdbcTransaction.cs
- XmlEncodedRawTextWriter.cs
- Hex.cs
- TabItem.cs
- SpecialTypeDataContract.cs
- MSHTMLHost.cs
- MailBnfHelper.cs
- CodeAttributeArgumentCollection.cs
- DataGridViewImageColumn.cs
- EdmScalarPropertyAttribute.cs
- Util.cs
- OdbcReferenceCollection.cs
- Image.cs
- InternalCache.cs
- DesignerVerb.cs
- ButtonFieldBase.cs
- SettingsBase.cs
- InternalBufferOverflowException.cs
- TypeDependencyAttribute.cs
- PropertyEmitter.cs
- ReferenceEqualityComparer.cs
- XMLDiffLoader.cs
- Fonts.cs
- PassportAuthenticationModule.cs
- IntSecurity.cs
- ColumnCollection.cs
- SelectedCellsChangedEventArgs.cs
- PngBitmapDecoder.cs
- PagerSettings.cs
- SslStream.cs
- DynamicRouteExpression.cs
- SmiEventSink_Default.cs
- ScrollEventArgs.cs
- WebPartDisplayModeCollection.cs
- HttpMethodConstraint.cs
- PolyBezierSegment.cs
- BmpBitmapEncoder.cs
- XslAstAnalyzer.cs
- RegexMatchCollection.cs
- TableLayout.cs
- ManifestResourceInfo.cs
- PatternMatcher.cs
- TableRow.cs
- DataControlFieldCell.cs
- CompiledIdentityConstraint.cs
- XmlSchemaException.cs
- Completion.cs
- DesignTimeSiteMapProvider.cs
- LogSwitch.cs
- ApplyImportsAction.cs
- PageRouteHandler.cs
- SpecularMaterial.cs
- DataGridViewColumnConverter.cs
- CircleHotSpot.cs
- PreservationFileWriter.cs
- ApplicationFileParser.cs
- ConstraintConverter.cs
- XmlTypeMapping.cs
- BitmapEffectGeneralTransform.cs
- PolyBezierSegment.cs
- BuildResultCache.cs
- SerializationInfoEnumerator.cs
- ConfigurationValidatorBase.cs
- XmlEncoding.cs
- oledbconnectionstring.cs
- ProfilePropertySettingsCollection.cs
- TimeSpanValidatorAttribute.cs
- DataGridViewSelectedCellCollection.cs
- UTF7Encoding.cs
- FontFamilyIdentifier.cs
- TextTreeInsertUndoUnit.cs
- DynamicActionMessageFilter.cs
- AssociatedControlConverter.cs
- MgmtConfigurationRecord.cs
- FrameworkContentElement.cs
- _ConnectOverlappedAsyncResult.cs
- LayoutTable.cs
- RoutedEventArgs.cs
- JpegBitmapDecoder.cs
- MetadataArtifactLoaderFile.cs
- AdPostCacheSubstitution.cs
- DbgUtil.cs
- PageAsyncTaskManager.cs