Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System.Data.Entity / System / Data / Spatial / DbGeometryWellKnownValue.cs
1 //---------------------------------------------------------------------
2 // <copyright file="DbSpatialWellKnownValue.cs" company="Microsoft">
3 //      Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //
6 // @owner  willa
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
9
10 using System.Runtime.Serialization;
11 namespace System.Data.Spatial
12 {
13     /// <summary>
14     /// A data contract serializable representation of a <see cref="DbGeometry"/> value.
15     /// </summary>
16     [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Db")]
17     [DataContract]
18     public sealed class DbGeometryWellKnownValue
19     {
20         public DbGeometryWellKnownValue()
21         {
22         }
23
24         /// <summary>
25         /// Gets or sets the coordinate system identifier (SRID) of this value.
26         /// </summary>
27         [DataMember(Order=1, IsRequired=false, EmitDefaultValue=false)]
28         public int CoordinateSystemId { get; set; }
29
30         /// <summary>
31         /// Gets or sets the well known text representation of this value.
32         /// </summary>
33         [DataMember(Order=2, IsRequired=false, EmitDefaultValue=false)]
34         public string WellKnownText { get; set; }
35
36         /// <summary>
37         /// Gets or sets the well known binary representation of this value.
38         /// </summary>
39         [DataMember(Order = 3, IsRequired = false, EmitDefaultValue = false)]
40         [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Required for this feature")]
41         public byte[] WellKnownBinary { get; set; }
42
43     }
44 }