Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Utils / ExceptionHelpers.cs / 2 / ExceptionHelpers.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Text; using System.Data.Mapping.ViewGeneration.Structures; using System.Diagnostics; using System.Data.Common.Utils; namespace System.Data.Mapping.ViewGeneration.Utils { // Miscellaneous helper routines for generating mapping exceptions internal static class ExceptionHelpers { // effects: if condition is false, throws an InvalidOperation // exception with resourceMmessage that is looked up in the resources internal static void CheckAndThrowRes(bool condition, FuncformatMessage) { if (condition == false) { StringBuilder builder = new StringBuilder(); builder.Append(System.Data.Entity.Strings.ViewGen_Internal_Error); builder.AppendLine(formatMessage()); throw EntityUtil.InvalidOperation(builder.ToString()); } } // effects: if condition is false, throws an InvalidOperation // exception with a message where the resourceFormatString is looked up in // the resources internal static void CheckAndThrowResArgs(bool condition, Func
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlText.cs
- StringBuilder.cs
- TextTreePropertyUndoUnit.cs
- ReadOnlyDataSourceView.cs
- HtmlToClrEventProxy.cs
- XmlSchemaImporter.cs
- EventSourceCreationData.cs
- While.cs
- DesignerDataView.cs
- WsatServiceCertificate.cs
- HttpPostedFileWrapper.cs
- PropertyMapper.cs
- CfgParser.cs
- SystemUnicastIPAddressInformation.cs
- ComAdminInterfaces.cs
- SecurityUtils.cs
- PeerContact.cs
- CountAggregationOperator.cs
- Point3DCollectionValueSerializer.cs
- ScrollChrome.cs
- SkewTransform.cs
- Int32Animation.cs
- ImageMap.cs
- KeyedCollection.cs
- EventlogProvider.cs
- MsmqDecodeHelper.cs
- RoutedCommand.cs
- DayRenderEvent.cs
- NamedPipeAppDomainProtocolHandler.cs
- DataGridTableStyleMappingNameEditor.cs
- ContextCorrelationInitializer.cs
- CodeSnippetTypeMember.cs
- TraceData.cs
- UTF7Encoding.cs
- NavigationHelper.cs
- Style.cs
- Parallel.cs
- CollectionEditorDialog.cs
- ApplicationHost.cs
- HttpListenerRequest.cs
- XmlRootAttribute.cs
- SecurityAccessDeniedException.cs
- CompoundFileStreamReference.cs
- HttpCachePolicy.cs
- Msec.cs
- panel.cs
- SqlHelper.cs
- DrawingServices.cs
- OperatingSystem.cs
- HttpAsyncResult.cs
- ExceptionUtility.cs
- QueryableDataSourceEditData.cs
- MarkupProperty.cs
- indexingfiltermarshaler.cs
- MetadataArtifactLoaderComposite.cs
- TextWriterTraceListener.cs
- TypeConverterHelper.cs
- Path.cs
- TableProviderWrapper.cs
- DbMetaDataFactory.cs
- HiddenFieldDesigner.cs
- Model3DCollection.cs
- GridViewRowCollection.cs
- ContainerUIElement3D.cs
- MenuAdapter.cs
- TextRangeBase.cs
- ValidationSummaryDesigner.cs
- TextComposition.cs
- cookie.cs
- EventSinkHelperWriter.cs
- InvocationExpression.cs
- ConfigurationPropertyCollection.cs
- ResponseStream.cs
- MatrixValueSerializer.cs
- UInt16.cs
- StateWorkerRequest.cs
- WindowsNonControl.cs
- EventDescriptor.cs
- EncodingDataItem.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- DataGridViewRowStateChangedEventArgs.cs
- ImpersonateTokenRef.cs
- KnownTypesProvider.cs
- Encoding.cs
- TableRowCollection.cs
- EntityDataSourceContextDisposingEventArgs.cs
- AliasedSlot.cs
- SyndicationElementExtension.cs
- InternalDispatchObject.cs
- MimeBasePart.cs
- EditingCoordinator.cs
- FileDialog.cs
- ToolboxItemCollection.cs
- Point3DKeyFrameCollection.cs
- AutomationProperty.cs
- PenThreadWorker.cs
- TryLoadRunnableWorkflowCommand.cs
- ReadWriteSpinLock.cs
- XmlTextAttribute.cs
- CustomError.cs