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
- SessionEndingCancelEventArgs.cs
- OdbcRowUpdatingEvent.cs
- SmtpDigestAuthenticationModule.cs
- CodeVariableDeclarationStatement.cs
- XmlSchemaFacet.cs
- SqlDependency.cs
- SettingsAttributes.cs
- InputScopeNameConverter.cs
- EdgeModeValidation.cs
- EncodingInfo.cs
- ResourceDisplayNameAttribute.cs
- DesignerForm.cs
- SignatureHelper.cs
- WebResponse.cs
- RootProfilePropertySettingsCollection.cs
- NominalTypeEliminator.cs
- DragEventArgs.cs
- PeerReferralPolicy.cs
- XmlCharacterData.cs
- SchemaImporterExtensionsSection.cs
- DocumentViewerConstants.cs
- StringUtil.cs
- RecordManager.cs
- ReliabilityContractAttribute.cs
- FixUp.cs
- ApplicationFileCodeDomTreeGenerator.cs
- NativeMethods.cs
- MetadataCache.cs
- ScrollViewerAutomationPeer.cs
- Pair.cs
- CodeSnippetStatement.cs
- FrugalList.cs
- ReferentialConstraintRoleElement.cs
- EntityRecordInfo.cs
- ReferenceEqualityComparer.cs
- ViewgenGatekeeper.cs
- XPathNodeInfoAtom.cs
- InputProviderSite.cs
- SoapCodeExporter.cs
- SafePEFileHandle.cs
- DependentList.cs
- DesignSurface.cs
- Dictionary.cs
- coordinatorscratchpad.cs
- WebControl.cs
- OleDbWrapper.cs
- XmlIterators.cs
- MenuBase.cs
- CategoryAttribute.cs
- ChangeProcessor.cs
- Oci.cs
- ClientSettingsSection.cs
- SelfIssuedAuthRSACryptoProvider.cs
- ImageSource.cs
- Trace.cs
- OpenTypeCommon.cs
- TextChangedEventArgs.cs
- DifferencingCollection.cs
- PolicyException.cs
- WSTrust.cs
- IncrementalHitTester.cs
- OleDbFactory.cs
- PropertyGridEditorPart.cs
- ActivityMarkupSerializer.cs
- XmlBindingWorker.cs
- TypeDescriptorContext.cs
- CertificateManager.cs
- CopyAttributesAction.cs
- WindowsAuthenticationModule.cs
- RevocationPoint.cs
- CheckBoxPopupAdapter.cs
- WebPartExportVerb.cs
- sqlser.cs
- QueueSurrogate.cs
- SqlExpressionNullability.cs
- ManagementClass.cs
- Helper.cs
- CompositionTarget.cs
- CollectionConverter.cs
- DataGridLengthConverter.cs
- Label.cs
- SharedStatics.cs
- Rect3DValueSerializer.cs
- ReadOnlyCollectionBuilder.cs
- XmlStreamStore.cs
- ProgressBarRenderer.cs
- TextEditorTables.cs
- DictionaryChange.cs
- CodeExpressionStatement.cs
- UnsafeNativeMethods.cs
- Viewport3DAutomationPeer.cs
- _HeaderInfo.cs
- CompositeScriptReferenceEventArgs.cs
- Error.cs
- SchemaTypeEmitter.cs
- ElementMarkupObject.cs
- ImageListDesigner.cs
- objectquery_tresulttype.cs
- RouteParametersHelper.cs
- ApplicationId.cs