forked from netwrix/pingcastle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Compatibility.cs
54 lines (48 loc) · 1.2 KB
/
Compatibility.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// Copyright (c) Ping Castle. All rights reserved.
// https://www.pingcastle.com
//
// Licensed under the Non-Profit OSL. See LICENSE file in the project root for full license information.
//
using System;
using System.Collections.Generic;
using System.Text;
namespace System.Runtime.Serialization
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module, Inherited = false, AllowMultiple = true)]
internal sealed class ContractNamespaceAttribute : Attribute
{
private string clrNamespace;
private string contractNamespace;
public string ClrNamespace
{
get
{
return this.clrNamespace;
}
set
{
this.clrNamespace = value;
}
}
public string ContractNamespace
{
get
{
return this.contractNamespace;
}
}
public ContractNamespaceAttribute(string contractNamespace)
{
this.contractNamespace = contractNamespace;
}
}
// available in dotnet 3 but not on dotnet 2 which is needed for Windows 2000
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)]
internal sealed class IgnoreDataMemberAttribute : Attribute
{
public IgnoreDataMemberAttribute()
{
}
}
}