Closed powercode closed 6 months ago
Fixes #4704 Generate BaseUrl like this
public string BaseUrl { get { return _baseUrl; } [System.Diagnostics.CodeAnalysis.MemberNotNull(nameof(_baseUrl))] set { _baseUrl = value; if (!string.IsNullOrEmpty(_baseUrl) && !_baseUrl.EndsWith("/")) _baseUrl += '/'; } }
This prevents the warning
warning CS8618: Non-nullable field '_baseUrl' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
This change seems to break .NET Standard 2.0 support.
Fixes #4704 Generate BaseUrl like this
This prevents the warning