Obsolete warnings (#156)
This commit is contained in:
@@ -257,8 +257,6 @@ dotnet_diagnostic.ca1509.severity = warning # Invalid entry in code metrics conf
|
||||
dotnet_diagnostic.ca1861.severity = none # Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
||||
|
||||
dotnet_diagnostic.cs8618.severity = suggestion # nullable problem
|
||||
dotnet_diagnostic.CS0809.severity = suggestion # obsolete errors
|
||||
dotnet_diagnostic.CS0618.severity = suggestion # obsolete errors
|
||||
|
||||
|
||||
# Performance rules
|
||||
|
||||
@@ -11,9 +11,4 @@ public class RasterLayer : Collection
|
||||
public CRS? rasterCrs { get; set; }
|
||||
public string? geomType { get; set; }
|
||||
public Dictionary<string, object>? renderer { get; set; }
|
||||
|
||||
public RasterLayer()
|
||||
{
|
||||
collectionType = "RasterLayer";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@ public class VectorLayer : Collection
|
||||
|
||||
public VectorLayer()
|
||||
{
|
||||
collectionType = "VectorLayer";
|
||||
attributes = new Base();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -256,7 +256,7 @@ public sealed class VersionResource
|
||||
return response.data.data;
|
||||
}
|
||||
|
||||
[Obsolete("modelId is no longer required, use the overload that doesn't specify a model id")]
|
||||
[Obsolete("modelId is no longer required, use the overload that doesn't specify a model id", true)]
|
||||
public Task<Version> Get(
|
||||
string versionId,
|
||||
string modelId,
|
||||
|
||||
@@ -165,7 +165,6 @@ public class DynamicBase : DynamicObject, IDynamicMetaObjectProvider
|
||||
/// <summary>
|
||||
/// Gets all of the property names on this class, dynamic or not.
|
||||
/// </summary> <returns></returns>
|
||||
[Obsolete("Use `GetMembers(DynamicBaseMemberType.All).Keys` instead")]
|
||||
public override IEnumerable<string> GetDynamicMemberNames()
|
||||
{
|
||||
var pinfos = TypeLoader.GetBaseProperties(GetType());
|
||||
|
||||
Reference in New Issue
Block a user