C# Class Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionExtensions

Extension methods for ApiDescription.
Datei anzeigen Open project: lodejard/AllNetCore

Public Methods

Method Description
GetProperty ( Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription apiDescription ) : T

Gets the value of a property from the ApiDescription.Properties collection using the provided value of T as the key.

SetProperty ( Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription apiDescription, value ) : void

Sets the value of an property in the ApiDescription.Properties collection using the provided value of T as the key.

Method Details

GetProperty() public static method

Gets the value of a property from the ApiDescription.Properties collection using the provided value of T as the key.
public static GetProperty ( Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription apiDescription ) : T
apiDescription Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription The .
return T

SetProperty() public static method

Sets the value of an property in the ApiDescription.Properties collection using the provided value of T as the key.
public static SetProperty ( Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription apiDescription, value ) : void
apiDescription Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription The .
value The value of the property.
return void