Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / util.cs / 1305376 / util.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Common; using System.Diagnostics; using System.Text; namespace System.Data.Metadata.Edm { ////// Class holding utility functions for metadata /// internal static class Util { #region Methods ////// Throws an appropriate exception if the given item is a readonly, used when an attempt is made to change /// a property /// /// The item whose readonly is being tested internal static void ThrowIfReadOnly(MetadataItem item) { Debug.Assert(item != null, "The given item is null"); if (item.IsReadOnly) { throw EntityUtil.OperationOnReadOnlyItem(); } } ////// Check to make sure the given item do have identity /// /// The item to check for valid identity /// The name of the argument [Conditional("DEBUG")] internal static void AssertItemHasIdentity(MetadataItem item, string argumentName) { Debug.Assert(!string.IsNullOrEmpty(item.Identity), "Item has empty identity."); EntityUtil.GenericCheckArgumentNull(item, argumentName); } #endregion } } // 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
- CodeMemberMethod.cs
- Paragraph.cs
- TableCell.cs
- MatrixAnimationBase.cs
- ProcessModelSection.cs
- SoapSchemaMember.cs
- InputScopeManager.cs
- HideDisabledControlAdapter.cs
- DataGridViewRowHeaderCell.cs
- Splitter.cs
- OletxTransactionFormatter.cs
- ActivationServices.cs
- RSAPKCS1SignatureFormatter.cs
- ProxyGenerator.cs
- CharacterMetricsDictionary.cs
- ZipIOLocalFileBlock.cs
- Invariant.cs
- ChannelServices.cs
- FileStream.cs
- PointValueSerializer.cs
- MustUnderstandSoapException.cs
- GZipDecoder.cs
- ProxyWebPart.cs
- HostingEnvironment.cs
- MediaScriptCommandRoutedEventArgs.cs
- ObjectSet.cs
- WindowsComboBox.cs
- WebPartsSection.cs
- CapabilitiesPattern.cs
- WindowsSysHeader.cs
- If.cs
- ConfigXmlWhitespace.cs
- RenderOptions.cs
- DeploymentSection.cs
- RectangleF.cs
- EntityDataSourceContextCreatingEventArgs.cs
- DataTableMappingCollection.cs
- HttpFileCollectionBase.cs
- EngineSiteSapi.cs
- HtmlTernaryTree.cs
- SchemaTableColumn.cs
- NeutralResourcesLanguageAttribute.cs
- Resources.Designer.cs
- OpCopier.cs
- assemblycache.cs
- SqlDataAdapter.cs
- AutomationElement.cs
- RoamingStoreFileUtility.cs
- Message.cs
- ExtendedPropertiesHandler.cs
- baseaxisquery.cs
- IndexerHelper.cs
- ToggleButtonAutomationPeer.cs
- panel.cs
- AbandonedMutexException.cs
- TypeNameConverter.cs
- RTTrackingProfile.cs
- InternalMappingException.cs
- SqlRewriteScalarSubqueries.cs
- ObservableCollection.cs
- WebPartExportVerb.cs
- ObjectDataSourceFilteringEventArgs.cs
- FontFamilyConverter.cs
- MethodAccessException.cs
- HttpResponseInternalWrapper.cs
- HttpResponseBase.cs
- RoutingExtensionElement.cs
- CfgParser.cs
- TextEditorCopyPaste.cs
- GridViewRowPresenter.cs
- EncodingTable.cs
- CultureSpecificStringDictionary.cs
- LabelEditEvent.cs
- PageAdapter.cs
- TCEAdapterGenerator.cs
- DataColumnCollection.cs
- QuaternionRotation3D.cs
- _ContextAwareResult.cs
- MarkupCompilePass2.cs
- PixelShader.cs
- _OverlappedAsyncResult.cs
- XamlToRtfWriter.cs
- CharacterBuffer.cs
- wmiprovider.cs
- DocumentXmlWriter.cs
- UriTemplateMatch.cs
- RestHandler.cs
- XmlSchemaElement.cs
- LinkButton.cs
- ImageClickEventArgs.cs
- CollectionMarkupSerializer.cs
- SubclassTypeValidator.cs
- XmlCharType.cs
- ConfigurationSectionHelper.cs
- Assert.cs
- ColorContextHelper.cs
- Mapping.cs
- StringDictionaryEditor.cs
- ThemeableAttribute.cs
- UIntPtr.cs