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
- ByteRangeDownloader.cs
- ReferentialConstraint.cs
- SchemaTableColumn.cs
- ProcessInfo.cs
- CommonGetThemePartSize.cs
- COMException.cs
- FormsAuthentication.cs
- DoubleAnimationClockResource.cs
- PointIndependentAnimationStorage.cs
- IgnoreSectionHandler.cs
- ColorMap.cs
- SchemaImporterExtensionsSection.cs
- BooleanExpr.cs
- DesignerDataView.cs
- BuildProviderUtils.cs
- BooleanStorage.cs
- ClientScriptItemCollection.cs
- CommonServiceBehaviorElement.cs
- MessageQueueCriteria.cs
- XComponentModel.cs
- FixedPageAutomationPeer.cs
- KeyedQueue.cs
- LogLogRecord.cs
- MediaEntryAttribute.cs
- DataContractFormatAttribute.cs
- MimeTextImporter.cs
- PolygonHotSpot.cs
- TimeSpanStorage.cs
- FixedSOMTable.cs
- TableHeaderCell.cs
- DocumentViewerAutomationPeer.cs
- ToolStripKeyboardHandlingService.cs
- ExtenderControl.cs
- OleDbEnumerator.cs
- BlurEffect.cs
- WindowsGraphicsCacheManager.cs
- MenuItem.cs
- Soap12ProtocolImporter.cs
- PersonalizationEntry.cs
- CompressEmulationStream.cs
- XPathEmptyIterator.cs
- TargetInvocationException.cs
- AccessedThroughPropertyAttribute.cs
- Delegate.cs
- AccessDataSourceView.cs
- SizeChangedInfo.cs
- TypedTableGenerator.cs
- WindowsFormsHost.cs
- SrgsRuleRef.cs
- GregorianCalendar.cs
- StrokeCollection.cs
- RoutedEventHandlerInfo.cs
- ConfigsHelper.cs
- ThemeConfigurationDialog.cs
- DbConnectionPoolGroup.cs
- SqlXmlStorage.cs
- DataGridItemEventArgs.cs
- Wizard.cs
- WaitForChangedResult.cs
- UserMapPath.cs
- WeakReadOnlyCollection.cs
- ListViewInsertionMark.cs
- ReadOnlyDataSourceView.cs
- SharedHttpTransportManager.cs
- CodeDomDesignerLoader.cs
- XmlWrappingWriter.cs
- SQLInt64.cs
- DrawListViewColumnHeaderEventArgs.cs
- CompareInfo.cs
- BlockUIContainer.cs
- Html32TextWriter.cs
- Vector3DCollection.cs
- TextFindEngine.cs
- Control.cs
- Metafile.cs
- WmlSelectionListAdapter.cs
- WindowsAltTab.cs
- RemoteWebConfigurationHostStream.cs
- TimeZoneInfo.cs
- CultureSpecificStringDictionary.cs
- ToolboxItemFilterAttribute.cs
- GcHandle.cs
- sitestring.cs
- CompressionTransform.cs
- XmlSchemaNotation.cs
- ZipArchive.cs
- DictionarySectionHandler.cs
- XhtmlTextWriter.cs
- StatusBarPanel.cs
- TiffBitmapEncoder.cs
- DialogResultConverter.cs
- PeerHelpers.cs
- PageClientProxyGenerator.cs
- XmlBinaryWriterSession.cs
- WebPartTransformerAttribute.cs
- X500Name.cs
- SecurityManager.cs
- ObjectReferenceStack.cs
- NonParentingControl.cs
- CLSCompliantAttribute.cs