summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/OpenId/Identifier.cs3
-rw-r--r--src/DotNetOpenAuth/OpenId/Realm.cs35
2 files changed, 31 insertions, 7 deletions
diff --git a/src/DotNetOpenAuth/OpenId/Identifier.cs b/src/DotNetOpenAuth/OpenId/Identifier.cs
index c3f483f..53f5094 100644
--- a/src/DotNetOpenAuth/OpenId/Identifier.cs
+++ b/src/DotNetOpenAuth/OpenId/Identifier.cs
@@ -49,6 +49,7 @@ namespace DotNetOpenAuth.OpenId {
/// <returns>The particular Identifier instance to represent the value given.</returns>
[SuppressMessage("Microsoft.Design", "CA1057:StringUriOverloadsCallSystemUriOverloads", Justification = "Not all identifiers are URIs.")]
[SuppressMessage("Microsoft.Usage", "CA2225:OperatorOverloadsHaveNamedAlternates", Justification = "Our named alternate is Parse.")]
+ [DebuggerStepThrough]
public static implicit operator Identifier(string identifier) {
Contract.Requires(identifier == null || identifier.Length > 0);
if (identifier == null) {
@@ -63,6 +64,7 @@ namespace DotNetOpenAuth.OpenId {
/// <param name="identifier">The identifier to convert.</param>
/// <returns>The result of the conversion.</returns>
[SuppressMessage("Microsoft.Usage", "CA2225:OperatorOverloadsHaveNamedAlternates", Justification = "We have a Parse function.")]
+ [DebuggerStepThrough]
public static implicit operator Identifier(Uri identifier) {
if (identifier == null) {
return null;
@@ -77,6 +79,7 @@ namespace DotNetOpenAuth.OpenId {
/// <param name="identifier">The identifier to convert to a string.</param>
/// <returns>The result of the conversion.</returns>
[SuppressMessage("Microsoft.Usage", "CA2225:OperatorOverloadsHaveNamedAlternates", Justification = "We have a Parse function.")]
+ [DebuggerStepThrough]
public static implicit operator string(Identifier identifier) {
Contract.Ensures((identifier == null && Contract.Result<string>() == null) || (identifier != null && Contract.Result<string>() != null));
if (identifier == null) {
diff --git a/src/DotNetOpenAuth/OpenId/Realm.cs b/src/DotNetOpenAuth/OpenId/Realm.cs
index daabb55..9136f49 100644
--- a/src/DotNetOpenAuth/OpenId/Realm.cs
+++ b/src/DotNetOpenAuth/OpenId/Realm.cs
@@ -106,33 +106,51 @@ namespace DotNetOpenAuth.OpenId {
/// <summary>
/// Gets the host component of this instance.
/// </summary>
- public string Host { get { return this.uri.Host; } }
+ public string Host {
+ [DebuggerStepThrough]
+ get { return this.uri.Host; }
+ }
/// <summary>
/// Gets the scheme name for this URI.
/// </summary>
- public string Scheme { get { return this.uri.Scheme; } }
+ public string Scheme {
+ [DebuggerStepThrough]
+ get { return this.uri.Scheme; }
+ }
/// <summary>
/// Gets the port number of this URI.
/// </summary>
- public int Port { get { return this.uri.Port; } }
+ public int Port {
+ [DebuggerStepThrough]
+ get { return this.uri.Port; }
+ }
/// <summary>
/// Gets the absolute path of the URI.
/// </summary>
- public string AbsolutePath { get { return this.uri.AbsolutePath; } }
+ public string AbsolutePath {
+ [DebuggerStepThrough]
+ get { return this.uri.AbsolutePath; }
+ }
/// <summary>
/// Gets the System.Uri.AbsolutePath and System.Uri.Query properties separated
/// by a question mark (?).
/// </summary>
- public string PathAndQuery { get { return this.uri.PathAndQuery; } }
+ public string PathAndQuery {
+ [DebuggerStepThrough]
+ get { return this.uri.PathAndQuery; }
+ }
/// <summary>
/// Gets the realm URL. If the realm includes a wildcard, it is not included here.
/// </summary>
- internal Uri NoWildcardUri { get { return this.uri; } }
+ internal Uri NoWildcardUri {
+ [DebuggerStepThrough]
+ get { return this.uri; }
+ }
/// <summary>
/// Gets the Realm discovery URL, where the wildcard (if present) is replaced with "www.".
@@ -199,6 +217,7 @@ namespace DotNetOpenAuth.OpenId {
/// <returns>The result of the conversion.</returns>
[SuppressMessage("Microsoft.Design", "CA1057:StringUriOverloadsCallSystemUriOverloads", Justification = "Not all realms are valid URLs (because of wildcards).")]
[SuppressMessage("Microsoft.Usage", "CA2234:PassSystemUriObjectsInsteadOfStrings", Justification = "Not all Realms are valid URLs.")]
+ [DebuggerStepThrough]
public static implicit operator Realm(string uri) {
return uri != null ? new Realm(uri) : null;
}
@@ -208,6 +227,7 @@ namespace DotNetOpenAuth.OpenId {
/// </summary>
/// <param name="uri">The URI to convert to a realm.</param>
/// <returns>The result of the conversion.</returns>
+ [DebuggerStepThrough]
public static implicit operator Realm(Uri uri) {
return uri != null ? new Realm(uri) : null;
}
@@ -217,6 +237,7 @@ namespace DotNetOpenAuth.OpenId {
/// </summary>
/// <param name="realm">The realm to convert to a string value.</param>
/// <returns>The result of the conversion.</returns>
+ [DebuggerStepThrough]
public static implicit operator string(Realm realm) {
return realm != null ? realm.ToString() : null;
}
@@ -411,4 +432,4 @@ namespace DotNetOpenAuth.OpenId {
}
#endif
}
-} \ No newline at end of file
+}