Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / documentation.cs / 1 / documentation.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....], [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Common; using System.Diagnostics; using System.Globalization; using System.Text; using System.Data.Common.Utils; namespace System.Data.Metadata.Edm { ////// Class representing the Documentation associated with an item /// public sealed class Documentation: MetadataItem { #region Fields private string _summary = ""; private string _longDescription = ""; #endregion #region Constructors ////// Default constructor - primarily created for supporting usage of this Do----netation class by SOM. /// internal Documentation() { } #endregion #region Properties ////// Returns the kind of the type /// public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.Documentation; } } ////// Gets the Summary for this Documentation instance. /// /// public string Summary { get { return _summary; } internal set { if (value != null) _summary = value; else _summary = ""; } } ////// Gets the LongDescription for this Documentation instance. /// /// public string LongDescription { get { return _longDescription; } internal set { if (value != null) _longDescription = value; else _longDescription = ""; } } ////// This property is required to be implemented for inheriting from MetadataItem. As there can be atmost one /// instance of a nested-Documentation, return the constant "Documentation" as it's identity. /// internal override string Identity { get { return "Documentation"; } } ////// Returns true if this Documentation instance contains only null/empty summary and longDescription /// /// public bool IsEmpty { get { if (string.IsNullOrEmpty(_summary) && string.IsNullOrEmpty(_longDescription) ) { return true; } return false; } } #endregion #region Methods ////// public override string ToString() { return _summary; } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....], [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Common; using System.Diagnostics; using System.Globalization; using System.Text; using System.Data.Common.Utils; namespace System.Data.Metadata.Edm { ////// Class representing the Documentation associated with an item /// public sealed class Documentation: MetadataItem { #region Fields private string _summary = ""; private string _longDescription = ""; #endregion #region Constructors ////// Default constructor - primarily created for supporting usage of this Do----netation class by SOM. /// internal Documentation() { } #endregion #region Properties ////// Returns the kind of the type /// public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.Documentation; } } ////// Gets the Summary for this Documentation instance. /// /// public string Summary { get { return _summary; } internal set { if (value != null) _summary = value; else _summary = ""; } } ////// Gets the LongDescription for this Documentation instance. /// /// public string LongDescription { get { return _longDescription; } internal set { if (value != null) _longDescription = value; else _longDescription = ""; } } ////// This property is required to be implemented for inheriting from MetadataItem. As there can be atmost one /// instance of a nested-Documentation, return the constant "Documentation" as it's identity. /// internal override string Identity { get { return "Documentation"; } } ////// Returns true if this Documentation instance contains only null/empty summary and longDescription /// /// public bool IsEmpty { get { if (string.IsNullOrEmpty(_summary) && string.IsNullOrEmpty(_longDescription) ) { return true; } return false; } } #endregion #region Methods ////// public override string ToString() { return _summary; } #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
- TextBoxAutomationPeer.cs
- ListDesigner.cs
- SBCSCodePageEncoding.cs
- ClosureBinding.cs
- listviewsubitemcollectioneditor.cs
- AsyncWaitHandle.cs
- StylusCaptureWithinProperty.cs
- SelectionGlyphBase.cs
- MulticastOption.cs
- QueryStatement.cs
- SqlUtil.cs
- DBDataPermissionAttribute.cs
- ImageFormatConverter.cs
- SelectionRangeConverter.cs
- XmlCharacterData.cs
- PerformanceCounterCategory.cs
- BindingOperations.cs
- Native.cs
- ActivityExecutionContextCollection.cs
- IntranetCredentialPolicy.cs
- ScrollChangedEventArgs.cs
- XmlNamedNodeMap.cs
- QilChoice.cs
- QuaternionAnimation.cs
- SimpleRecyclingCache.cs
- listitem.cs
- CodeSubDirectory.cs
- SizeAnimationBase.cs
- SimpleFieldTemplateFactory.cs
- LookupNode.cs
- ClientTarget.cs
- HostingEnvironmentSection.cs
- Freezable.cs
- ListBoxAutomationPeer.cs
- RadioButtonList.cs
- EncodingNLS.cs
- ParallelLoopState.cs
- NonSerializedAttribute.cs
- ConnectionPoint.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- AgileSafeNativeMemoryHandle.cs
- DefaultValueTypeConverter.cs
- UnmanagedHandle.cs
- SystemGatewayIPAddressInformation.cs
- GridItemProviderWrapper.cs
- Model3DGroup.cs
- BaseDataListPage.cs
- WindowsAuthenticationEventArgs.cs
- PreservationFileWriter.cs
- OracleBinary.cs
- DecimalAnimationBase.cs
- NonVisualControlAttribute.cs
- Util.cs
- SessionStateContainer.cs
- PolicyException.cs
- FileDataSourceCache.cs
- State.cs
- RootContext.cs
- _FtpDataStream.cs
- _DisconnectOverlappedAsyncResult.cs
- _UriSyntax.cs
- PolicyUnit.cs
- Rule.cs
- SqlClientFactory.cs
- ItemChangedEventArgs.cs
- DbTransaction.cs
- TextParaClient.cs
- NonceToken.cs
- RecordConverter.cs
- WebPartCollection.cs
- InputMethod.cs
- COSERVERINFO.cs
- SqlDataSourceFilteringEventArgs.cs
- XmlDataContract.cs
- BuildProvider.cs
- ContainerVisual.cs
- FloaterBaseParaClient.cs
- Line.cs
- ClosureBinding.cs
- MatrixStack.cs
- DeclarationUpdate.cs
- PerformanceCounterPermissionEntry.cs
- SessionStateModule.cs
- Point3DConverter.cs
- FileNotFoundException.cs
- CodeTypeReferenceCollection.cs
- CompositeDataBoundControl.cs
- ADMembershipUser.cs
- ProgressBar.cs
- ListComponentEditor.cs
- TouchDevice.cs
- TextDecorationCollection.cs
- DataPagerFieldCollection.cs
- HttpStaticObjectsCollectionBase.cs
- ExtensibleClassFactory.cs
- GeometryCombineModeValidation.cs
- TextTreeDeleteContentUndoUnit.cs
- TableLayoutColumnStyleCollection.cs
- MachineKeyConverter.cs
- GraphicsPath.cs