Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Utils / ExceptionHelpers.cs / 1 / 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
- Tablet.cs
- EnumerableCollectionView.cs
- DataGridViewCellStyle.cs
- Membership.cs
- ConfigsHelper.cs
- XPathAncestorQuery.cs
- MimeBasePart.cs
- Control.cs
- DynamicResourceExtension.cs
- RenameRuleObjectDialog.Designer.cs
- SequenceRangeCollection.cs
- TraceContext.cs
- DesignConnection.cs
- EntityContainerAssociationSet.cs
- DropDownList.cs
- DispatchWrapper.cs
- EventProviderWriter.cs
- QilStrConcatenator.cs
- WorkingDirectoryEditor.cs
- ServiceDescriptionContext.cs
- HyperLinkColumn.cs
- SqlRemoveConstantOrderBy.cs
- Pts.cs
- AutoCompleteStringCollection.cs
- System.Data_BID.cs
- Parsers.cs
- SqlInternalConnectionSmi.cs
- PropertyPath.cs
- AccessDataSourceView.cs
- HTMLTagNameToTypeMapper.cs
- StylusDevice.cs
- HttpCookieCollection.cs
- TreeViewHitTestInfo.cs
- PointCollection.cs
- TraceSection.cs
- ProtectedProviderSettings.cs
- AutomationEventArgs.cs
- CompositeDataBoundControl.cs
- NativeMethods.cs
- CodeConstructor.cs
- ExceptionTranslationTable.cs
- UnaryQueryOperator.cs
- DelegatingTypeDescriptionProvider.cs
- EntityDataSourceUtil.cs
- PropertyBuilder.cs
- ObjectContextServiceProvider.cs
- LocalFileSettingsProvider.cs
- DrawingContextWalker.cs
- WhitespaceRuleLookup.cs
- LightweightCodeGenerator.cs
- Vector3DCollectionValueSerializer.cs
- VersionConverter.cs
- ContextQuery.cs
- RegexBoyerMoore.cs
- ThicknessAnimationBase.cs
- NativeMethods.cs
- QuaternionValueSerializer.cs
- OutgoingWebResponseContext.cs
- XPathSelectionIterator.cs
- ObjectNotFoundException.cs
- InternalTypeHelper.cs
- GenericTypeParameterConverter.cs
- ColorDialog.cs
- MissingMethodException.cs
- Graph.cs
- ContainerParaClient.cs
- TypeBuilder.cs
- TableChangeProcessor.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- SystemDiagnosticsSection.cs
- TableLayoutStyleCollection.cs
- CompilerScopeManager.cs
- Utils.cs
- FieldReference.cs
- CopyOnWriteList.cs
- PrintDialogException.cs
- ListenerAdaptersInstallComponent.cs
- ProtocolImporter.cs
- SqlDataSourceCommandEventArgs.cs
- SiteMapDataSource.cs
- OleDbPermission.cs
- EncodingDataItem.cs
- Transform3DGroup.cs
- TrustLevel.cs
- ErrorInfoXmlDocument.cs
- TraceAsyncResult.cs
- PopupEventArgs.cs
- InheritedPropertyDescriptor.cs
- DataComponentMethodGenerator.cs
- MemoryMappedView.cs
- TypeExtensions.cs
- ExceptionUtil.cs
- PathGeometry.cs
- ToolBarButtonClickEvent.cs
- ProvideValueServiceProvider.cs
- DataGridViewElement.cs
- ComponentResourceKey.cs
- Compilation.cs
- DataMemberAttribute.cs
- ThemeDictionaryExtension.cs