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
- DataGridViewRowErrorTextNeededEventArgs.cs
- ArcSegment.cs
- NameValueConfigurationCollection.cs
- DispatchRuntime.cs
- MonthCalendarDesigner.cs
- LambdaCompiler.Lambda.cs
- FontUnitConverter.cs
- EnlistmentState.cs
- DataGridPagingPage.cs
- HtmlEmptyTagControlBuilder.cs
- DataObjectEventArgs.cs
- NoneExcludedImageIndexConverter.cs
- AnimationLayer.cs
- TextElement.cs
- DrawingCollection.cs
- ConvertEvent.cs
- Propagator.Evaluator.cs
- SmtpException.cs
- NativeBuffer.cs
- CustomError.cs
- EncoderNLS.cs
- TraceContext.cs
- SpeechDetectedEventArgs.cs
- ValueHandle.cs
- ToolStripItemTextRenderEventArgs.cs
- TextEffectCollection.cs
- CrossAppDomainChannel.cs
- SupportingTokenListenerFactory.cs
- log.cs
- PrintPreviewGraphics.cs
- Int64Storage.cs
- QilTernary.cs
- DurableInstanceProvider.cs
- QuaternionAnimation.cs
- Fonts.cs
- TextDecoration.cs
- SqlCommandBuilder.cs
- Validator.cs
- ProbeDuplexAsyncResult.cs
- IProvider.cs
- PresentationTraceSources.cs
- TdsEnums.cs
- DbDataRecord.cs
- X509Certificate2.cs
- StyleBamlRecordReader.cs
- Solver.cs
- HttpServerVarsCollection.cs
- DeviceContexts.cs
- MethodCallTranslator.cs
- Column.cs
- DataGridViewRowConverter.cs
- SupportingTokenParameters.cs
- BamlBinaryWriter.cs
- ChildTable.cs
- FirewallWrapper.cs
- EventPropertyMap.cs
- ListenerSessionConnection.cs
- TreeView.cs
- CompilationPass2Task.cs
- ExpandedWrapper.cs
- Dictionary.cs
- DebugHandleTracker.cs
- SimpleMailWebEventProvider.cs
- MonikerSyntaxException.cs
- ISO2022Encoding.cs
- SocketElement.cs
- HighlightVisual.cs
- ProxyWebPartManager.cs
- LocationUpdates.cs
- DecimalKeyFrameCollection.cs
- SecurityIdentifierElement.cs
- WebPartDisplayModeCancelEventArgs.cs
- TypeConverterBase.cs
- XmlSchemaObjectCollection.cs
- SharedUtils.cs
- Int32CollectionValueSerializer.cs
- DateTimeUtil.cs
- BitmapSourceSafeMILHandle.cs
- SoapCodeExporter.cs
- RepeatBehavior.cs
- OperationPickerDialog.designer.cs
- ChtmlTextBoxAdapter.cs
- AssemblyHash.cs
- UrlPropertyAttribute.cs
- CurrentChangingEventManager.cs
- TemplateBamlRecordReader.cs
- QueueProcessor.cs
- EditCommandColumn.cs
- SystemFonts.cs
- ScopedKnownTypes.cs
- UrlAuthFailureHandler.cs
- ContainerAction.cs
- Command.cs
- MULTI_QI.cs
- XmlDocumentViewSchema.cs
- Transform3DGroup.cs
- IODescriptionAttribute.cs
- ValueTypeFixupInfo.cs
- IBuiltInEvidence.cs
- WindowsTooltip.cs