You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Microsoft.AspNet.WebApi.Versioning.ApiExplorer/System.Web.Http/Description/ApiDescriptionExtensions.cs
+30
Original file line number
Diff line number
Diff line change
@@ -47,5 +47,35 @@ public static string GetUniqueID( this ApiDescription apiDescription )
47
47
48
48
returnapiDescription.ID;
49
49
}
50
+
51
+
/// <summary>
52
+
/// Gets a property of the specified type from the API description.
53
+
/// </summary>
54
+
/// <typeparam name="T">The <see cref="Type">type</see> of property to retrieve.</typeparam>
55
+
/// <param name="apiDescription">The <see cref="VersionedApiDescription">API description</see> to get the property from.</param>
56
+
/// <returns>The value of the property, if present; otherwise, the default value of <typeparamref name="T"/>.</returns>
0 commit comments