Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / AtomContentProperty.cs / 1305376 / AtomContentProperty.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Provides a class that represents an ATOM entry property, with
// details on how it was parsed and interpreted.
//
//---------------------------------------------------------------------
namespace System.Data.Services.Client
{
#region Namespaces.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Xml;
using System.Xml.Linq;
using System.Text;
#endregion Namespaces.
///
/// Use this class to represent a property for an ATOM entry.
///
[DebuggerDisplay("AtomContentProperty {TypeName} {Name}")]
internal class AtomContentProperty
{
/// Whether the property was marked as null.
/// This value will be assigned during XML parsing.
public bool IsNull
{
get;
set;
}
/// Property name.
///
/// This value will be assigned during XML parsing.
/// May be null if reading a top-level complex instance.
///
public string Name
{
get;
set;
}
/// Type name for the property as found during serialization.
/// This value will be assigned during XML parsing. May be null.
public string TypeName
{
get;
set;
}
/// Text value of property, as found during serialization.
public string Text
{
get;
set;
}
/// Sub-properties for this property; typically found for complex types.
///
/// This value will be assigned during XML parsing, but may be modified
/// when Entity Property Mapping information is applied.
///
/// Note that for expanded entities, sub-properties will be found
/// in the value.
///
public List Properties
{
get;
set;
}
/// Value for nested collection of entries found during parsing.
public AtomFeed Feed
{
get;
set;
}
/// Value for a nested ATOM entry as found during parsing.
public AtomEntry Entry
{
get;
set;
}
/// Materialized value for this property; null until materialization.
///
/// This property will be null after parsing, and is assigned a value
/// during materialization (when type information is available/resolved).
///
/// This property will be set for primitive types only in the current
/// materialization pipeline.
///
///
public object MaterializedValue
{
get;
set;
}
/// Ensures that the property is not null.
public void EnsureProperties()
{
if (this.Properties == null)
{
this.Properties = new List();
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Provides a class that represents an ATOM entry property, with
// details on how it was parsed and interpreted.
//
//---------------------------------------------------------------------
namespace System.Data.Services.Client
{
#region Namespaces.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Xml;
using System.Xml.Linq;
using System.Text;
#endregion Namespaces.
///
/// Use this class to represent a property for an ATOM entry.
///
[DebuggerDisplay("AtomContentProperty {TypeName} {Name}")]
internal class AtomContentProperty
{
/// Whether the property was marked as null.
/// This value will be assigned during XML parsing.
public bool IsNull
{
get;
set;
}
/// Property name.
///
/// This value will be assigned during XML parsing.
/// May be null if reading a top-level complex instance.
///
public string Name
{
get;
set;
}
/// Type name for the property as found during serialization.
/// This value will be assigned during XML parsing. May be null.
public string TypeName
{
get;
set;
}
/// Text value of property, as found during serialization.
public string Text
{
get;
set;
}
/// Sub-properties for this property; typically found for complex types.
///
/// This value will be assigned during XML parsing, but may be modified
/// when Entity Property Mapping information is applied.
///
/// Note that for expanded entities, sub-properties will be found
/// in the value.
///
public List Properties
{
get;
set;
}
/// Value for nested collection of entries found during parsing.
public AtomFeed Feed
{
get;
set;
}
/// Value for a nested ATOM entry as found during parsing.
public AtomEntry Entry
{
get;
set;
}
/// Materialized value for this property; null until materialization.
///
/// This property will be null after parsing, and is assigned a value
/// during materialization (when type information is available/resolved).
///
/// This property will be set for primitive types only in the current
/// materialization pipeline.
///
///
public object MaterializedValue
{
get;
set;
}
/// Ensures that the property is not null.
public void EnsureProperties()
{
if (this.Properties == null)
{
this.Properties = new List();
}
}
}
}
// 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
- Rect.cs
- ToolStripItemEventArgs.cs
- SubclassTypeValidator.cs
- ProfileParameter.cs
- SystemTcpStatistics.cs
- KnownBoxes.cs
- ConnectionPoint.cs
- ButtonColumn.cs
- WindowsAuthenticationModule.cs
- MimeParameter.cs
- StartFileNameEditor.cs
- Serializer.cs
- InfoCardProofToken.cs
- AsymmetricKeyExchangeDeformatter.cs
- ISAPIWorkerRequest.cs
- ErrorTableItemStyle.cs
- BaseTemplatedMobileComponentEditor.cs
- FullTextState.cs
- IisTraceListener.cs
- RadioButtonList.cs
- SelectionProviderWrapper.cs
- If.cs
- ModuleElement.cs
- WindowsIPAddress.cs
- ContentFilePart.cs
- PerformanceCounterPermissionEntry.cs
- webproxy.cs
- ChannelCacheDefaults.cs
- QuaternionAnimationBase.cs
- PersianCalendar.cs
- Matrix.cs
- DetailsViewPagerRow.cs
- VisualProxy.cs
- DateTimeUtil.cs
- ResourceWriter.cs
- ReliableMessagingHelpers.cs
- TrustSection.cs
- BuilderPropertyEntry.cs
- ElementProxy.cs
- PeerObject.cs
- HostSecurityManager.cs
- DesignerOptions.cs
- ManifestResourceInfo.cs
- ExternalFile.cs
- ClientUtils.cs
- FunctionMappingTranslator.cs
- OdbcCommandBuilder.cs
- CommandValueSerializer.cs
- WindowsListViewItem.cs
- AccessDataSourceView.cs
- MailMessageEventArgs.cs
- ResourceExpressionBuilder.cs
- RemotingConfiguration.cs
- DynamicDocumentPaginator.cs
- SchemaElementDecl.cs
- RunInstallerAttribute.cs
- SHA1Managed.cs
- CollectionTraceRecord.cs
- DataGridViewComponentPropertyGridSite.cs
- ScrollBarRenderer.cs
- Line.cs
- BitmapDownload.cs
- SqlUdtInfo.cs
- CompareInfo.cs
- Point3DAnimation.cs
- OracleDateTime.cs
- XmlValidatingReader.cs
- OleDbParameter.cs
- QueryCacheManager.cs
- SaveFileDialog.cs
- LocalizationParserHooks.cs
- ParagraphResult.cs
- DbSetClause.cs
- RemoveStoryboard.cs
- ScopelessEnumAttribute.cs
- WebConfigurationManager.cs
- HtmlInputText.cs
- DataGridViewComboBoxEditingControl.cs
- CryptoProvider.cs
- DialogWindow.cs
- BevelBitmapEffect.cs
- ListControlConvertEventArgs.cs
- ShaperBuffers.cs
- MatrixCamera.cs
- RelatedImageListAttribute.cs
- PropertyMapper.cs
- EventItfInfo.cs
- ServiceModelActivationSectionGroup.cs
- HttpResponseBase.cs
- securitycriticaldataformultiplegetandset.cs
- Misc.cs
- RenamedEventArgs.cs
- TimeSpanStorage.cs
- Message.cs
- StackBuilderSink.cs
- XmlILModule.cs
- CodeComment.cs
- WebPartEditorOkVerb.cs
- COM2AboutBoxPropertyDescriptor.cs
- TextFragmentEngine.cs