1 //Copyright 2010 Microsoft Corporation
2 //
3 //Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
4 //You may obtain a copy of the License at
5 //
6 //http://www.apache.org/licenses/LICENSE-2.0
7 //
8 //Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
9 //"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 //See the License for the specific language governing permissions and limitations under the License.
11 
12 
13 namespace System.Data.Services.Client
14 {
15     #region Namespaces.
16 
17     using System;
18     using System.Collections;
19     using System.Collections.Generic;
20     using System.Diagnostics;
21     using System.Linq;
22     using System.Reflection;
23     using System.Xml;
24     using System.Xml.Linq;
25     using System.Text;
26 
27     #endregion Namespaces.
28 
29     [DebuggerDisplay("AtomContentProperty {TypeName} {Name}")]
30     internal class AtomContentProperty
31     {
32         public bool IsNull
33         {
34             get;
35             set;
36         }
37 
38         public string Name
39         {
40             get;
41             set;
42         }
43 
44         public string TypeName
45         {
46             get;
47             set;
48         }
49 
50         public string Text
51         {
52             get;
53             set;
54         }
55 
56         public List<AtomContentProperty> Properties
57         {
58             get;
59             set;
60         }
61 
62         public AtomFeed Feed
63         {
64             get;
65             set;
66         }
67 
68         public AtomEntry Entry
69         {
70             get;
71             set;
72         }
73 
74         public object MaterializedValue
75         {
76             get;
77             set;
78         }
79 
EnsureProperties()80         public void EnsureProperties()
81         {
82             if (this.Properties == null)
83             {
84                 this.Properties = new List<AtomContentProperty>();
85             }
86         }
87     }
88 }
89