public With ( string assemblyName = null, string name = null, string interfaceName = null, string @namespace = null, string informationalVersion = null ) : |
||
assemblyName | string | The name of the generated assembly. Default set to "Client". |
name | string | The name of the REST client |
interfaceName | string | The name of the REST client |
@namespace | string | |
informationalVersion | string | The informational version of the generated assembly. Defaults to 1.0.0.0. |
return |
public ClientMetadata With(string assemblyName = null,
string name = null,
string interfaceName = null,
string @namespace = null,
string informationalVersion = null)
{
if (String.IsNullOrWhiteSpace(assemblyName))
assemblyName = AssemblyName;
if (String.IsNullOrWhiteSpace(name))
name = Name;
if (String.IsNullOrWhiteSpace(interfaceName))
interfaceName = String.Concat('I', name);
if (String.IsNullOrWhiteSpace(@namespace))
@namespace = Namespace;
if (String.IsNullOrWhiteSpace(informationalVersion))
informationalVersion = InformationalVersion;
return new ClientMetadata(assemblyName, name, interfaceName, @namespace, informationalVersion);
}