Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / CellLabel.cs / 2 / CellLabel.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System.Data.Common.Utils;
namespace System.Data.Mapping.ViewGeneration.Structures {
// A class that abstracts the notion of identifying table mapping
// fragments or cells, e.g., line numbers, etc
internal class CellLabel {
#region Constructors
///
/// Copy Constructor
///
internal CellLabel(CellLabel source)
{
this.m_startLineNumber = source.m_startLineNumber;
this.m_startLinePosition = source.m_startLinePosition;
this.m_sourceLocation = source.m_sourceLocation;
}
internal CellLabel(StorageMappingFragment fragmentInfo) :
this(fragmentInfo.StartLineNumber, fragmentInfo.StartLinePosition, fragmentInfo.SourceLocation) { }
internal CellLabel(int startLineNumber, int startLinePosition, string sourceLocation)
{
m_startLineNumber = startLineNumber;
m_startLinePosition = startLinePosition;
m_sourceLocation = sourceLocation;
}
#endregion
#region Fields
private int m_startLineNumber;
private int m_startLinePosition;
private string m_sourceLocation;
#endregion
#region Properties
internal int StartLineNumber
{
get { return m_startLineNumber; }
}
internal int StartLinePosition
{
get { return m_startLinePosition; }
}
internal string SourceLocation
{
get { return m_sourceLocation; }
}
#endregion
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System.Data.Common.Utils;
namespace System.Data.Mapping.ViewGeneration.Structures {
// A class that abstracts the notion of identifying table mapping
// fragments or cells, e.g., line numbers, etc
internal class CellLabel {
#region Constructors
///
/// Copy Constructor
///
internal CellLabel(CellLabel source)
{
this.m_startLineNumber = source.m_startLineNumber;
this.m_startLinePosition = source.m_startLinePosition;
this.m_sourceLocation = source.m_sourceLocation;
}
internal CellLabel(StorageMappingFragment fragmentInfo) :
this(fragmentInfo.StartLineNumber, fragmentInfo.StartLinePosition, fragmentInfo.SourceLocation) { }
internal CellLabel(int startLineNumber, int startLinePosition, string sourceLocation)
{
m_startLineNumber = startLineNumber;
m_startLinePosition = startLinePosition;
m_sourceLocation = sourceLocation;
}
#endregion
#region Fields
private int m_startLineNumber;
private int m_startLinePosition;
private string m_sourceLocation;
#endregion
#region Properties
internal int StartLineNumber
{
get { return m_startLineNumber; }
}
internal int StartLinePosition
{
get { return m_startLinePosition; }
}
internal string SourceLocation
{
get { return m_sourceLocation; }
}
#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
- AccessedThroughPropertyAttribute.cs
- KnownIds.cs
- FontCacheUtil.cs
- InstanceDataCollection.cs
- SevenBitStream.cs
- SQLStringStorage.cs
- SystemInfo.cs
- ObjectListCommandEventArgs.cs
- AspCompat.cs
- SaveFileDialogDesigner.cs
- SHA1CryptoServiceProvider.cs
- SchemaTableColumn.cs
- Vector3dCollection.cs
- AttributeInfo.cs
- RequestCacheValidator.cs
- FormsAuthenticationTicket.cs
- JsonReader.cs
- Highlights.cs
- BindStream.cs
- TabletDevice.cs
- Help.cs
- TextFormatterHost.cs
- XmlSchemaAttribute.cs
- MatrixTransform.cs
- ExtractCollection.cs
- Win32.cs
- KeyedCollection.cs
- HybridDictionary.cs
- Rectangle.cs
- XmlStreamStore.cs
- AuthStoreRoleProvider.cs
- StoreItemCollection.Loader.cs
- RepeaterDataBoundAdapter.cs
- CodeRemoveEventStatement.cs
- CustomErrorCollection.cs
- WorkflowInlining.cs
- ConfigurationStrings.cs
- ObjectListTitleAttribute.cs
- StylusPoint.cs
- InstanceKeyNotReadyException.cs
- IPEndPoint.cs
- iisPickupDirectory.cs
- PropertyKey.cs
- HttpCookieCollection.cs
- CodeDirectoryCompiler.cs
- MimeImporter.cs
- RenderCapability.cs
- TableRowCollection.cs
- DesignerDataParameter.cs
- CancellationState.cs
- InvalidWMPVersionException.cs
- webeventbuffer.cs
- ScrollBar.cs
- ClaimTypeRequirement.cs
- infer.cs
- WebPartUtil.cs
- OutputCacheProviderCollection.cs
- SettingsPropertyCollection.cs
- TextAnchor.cs
- ADMembershipUser.cs
- EncoderParameters.cs
- SqlNodeAnnotation.cs
- MessageAction.cs
- BoolLiteral.cs
- Misc.cs
- WhitespaceRule.cs
- TypeUsage.cs
- DSGeneratorProblem.cs
- XslTransformFileEditor.cs
- SpellCheck.cs
- UnsafeNativeMethods.cs
- ReservationCollection.cs
- RectValueSerializer.cs
- FunctionImportElement.cs
- BorderSidesEditor.cs
- DeclaredTypeValidatorAttribute.cs
- Vector3dCollection.cs
- HttpApplicationFactory.cs
- XmlAttributeOverrides.cs
- SrgsDocument.cs
- GridViewRowPresenter.cs
- BufferedWebEventProvider.cs
- ControlBuilder.cs
- LinearQuaternionKeyFrame.cs
- DPAPIProtectedConfigurationProvider.cs
- ChtmlTextWriter.cs
- ClientSideQueueItem.cs
- ContentType.cs
- UrlMappingCollection.cs
- RemotingSurrogateSelector.cs
- DrawingCollection.cs
- QilScopedVisitor.cs
- PersonalizationStateInfo.cs
- BufferedOutputStream.cs
- ResourceDisplayNameAttribute.cs
- RequestFactory.cs
- EastAsianLunisolarCalendar.cs
- FilterUserControlBase.cs
- SafeNativeMethods.cs
- UnconditionalPolicy.cs