You've already forked linux-packaging-mono
Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
38
external/referencesource/System.ServiceModel/System/ServiceModel/Description/PolicyVersion.cs
vendored
Normal file
38
external/referencesource/System.ServiceModel/System/ServiceModel/Description/PolicyVersion.cs
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
//------------------------------------------------------------
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace System.ServiceModel.Description
|
||||
{
|
||||
public sealed class PolicyVersion
|
||||
{
|
||||
string policyNamespace;
|
||||
|
||||
static PolicyVersion policyVersion12;
|
||||
static PolicyVersion policyVersion15;
|
||||
|
||||
static PolicyVersion()
|
||||
{
|
||||
policyVersion12 = new PolicyVersion(MetadataStrings.WSPolicy.NamespaceUri);
|
||||
policyVersion15 = new PolicyVersion(MetadataStrings.WSPolicy.NamespaceUri15);
|
||||
}
|
||||
|
||||
PolicyVersion(string policyNamespace)
|
||||
{
|
||||
this.policyNamespace = policyNamespace;
|
||||
}
|
||||
|
||||
public static PolicyVersion Policy12 { get { return policyVersion12; } }
|
||||
public static PolicyVersion Policy15 { get { return policyVersion15; } }
|
||||
public static PolicyVersion Default { get { return policyVersion12; } }
|
||||
public string Namespace { get { return policyNamespace; } }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return policyNamespace;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user