Pinvoke symbols according to the new moonlight naming convention.
[mono.git] / mcs / class / System.Runtime.Serialization / System.Runtime.Serialization / ImportOptions.cs
1 //
2 // ImportOptions.cs
3 //
4 // Author:
5 //      Atsushi Enomoto <atsushi@ximian.com>
6 //
7 // Copyright (C) 2005 Novell, Inc.  http://www.novell.com
8 //
9 // Permission is hereby granted, free of charge, to any person obtaining
10 // a copy of this software and associated documentation files (the
11 // "Software"), to deal in the Software without restriction, including
12 // without limitation the rights to use, copy, modify, merge, publish,
13 // distribute, sublicense, and/or sell copies of the Software, and to
14 // permit persons to whom the Software is furnished to do so, subject to
15 // the following conditions:
16 // 
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
19 // 
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 //
28 #if NET_2_0
29
30 using System.CodeDom.Compiler;
31 using System.Collections.Generic;
32
33 namespace System.Runtime.Serialization
34 {
35         public class ImportOptions
36         {
37                 IDataContractSurrogate surrogate;
38                 ICollection<Type> referenced_collection_types =
39                         new List<Type> ();
40                 ICollection<Type> referenced_types = new List<Type> ();
41                 bool enable_data_binding;
42                 bool generate_internal;
43                 bool generate_serializable;
44                 bool import_xml_type;
45                 IDictionary<string, string> namespaces =
46                         new Dictionary<string, string> ();
47                 CodeDomProvider code_provider;
48
49                 public ImportOptions ()
50                 {
51                 }
52
53                 public CodeDomProvider CodeProvider {
54                         get { return code_provider; }
55                         set { code_provider = value; }
56                 }
57
58                 [MonoTODO]
59                 public IDataContractSurrogate DataContractSurrogate {
60                         get { return surrogate; }
61                         set { surrogate = value; }
62                 }
63
64                 [MonoTODO]
65                 public bool EnableDataBinding {
66                         get { return enable_data_binding; }
67                         set { enable_data_binding = value; }
68                 }
69
70                 public bool GenerateInternal {
71                         get { return generate_internal; }
72                         set { generate_internal = value; }
73                 }
74
75                 public bool GenerateSerializable {
76                         get { return generate_serializable; }
77                         set { generate_serializable = value; }
78                 }
79
80                 [MonoTODO]
81                 public bool ImportXmlType {
82                         get { return import_xml_type; }
83                         set { import_xml_type = value; }
84                 }
85
86                 public IDictionary<string, string> Namespaces {
87                         get { return namespaces; }
88                 }
89
90                 [MonoTODO]
91                 public ICollection<Type> ReferencedCollectionTypes {
92                         get { return referenced_collection_types; }
93                 }
94
95                 [MonoTODO]
96                 public ICollection<Type> ReferencedTypes {
97                         get { return referenced_types; }
98                 }
99         }
100 }
101
102 #endif