simplify new expression
This commit is contained in:
1 parent
42b2cb3033
commit
193090da43
59 files changed
+149
-149
No files matched your search
@@ -8,11 +8,11 @@ namespace HandyControl.Data
|
||||
|
||||
public Guid Guid { get; }
|
||||
|
||||
public static GifFrameDimension Time { get; } = new GifFrameDimension(new Guid("{6aedbd6d-3fb5-418a-83a6-7f45229dc872}"));
|
||||
public static GifFrameDimension Time { get; } = new(new Guid("{6aedbd6d-3fb5-418a-83a6-7f45229dc872}"));
|
||||
|
||||
public static GifFrameDimension Resolution { get; } = new GifFrameDimension(new Guid("{84236f7b-3bd3-428f-8dab-4ea1439ca315}"));
|
||||
public static GifFrameDimension Resolution { get; } = new(new Guid("{84236f7b-3bd3-428f-8dab-4ea1439ca315}"));
|
||||
|
||||
public static GifFrameDimension Page { get; } = new GifFrameDimension(new Guid("{7462dc86-6180-4c7e-8e3f-ee7333a7a483}"));
|
||||
public static GifFrameDimension Page { get; } = new(new Guid("{7462dc86-6180-4c7e-8e3f-ee7333a7a483}"));
|
||||
|
||||
public override bool Equals(object o) => o is GifFrameDimension format && Guid == format.Guid;
|
||||
|
||||
|
||||
@@ -7,11 +7,11 @@ namespace HandyControl.Data
|
||||
{
|
||||
public readonly struct SystemVersionInfo
|
||||
{
|
||||
public static SystemVersionInfo Windows10 => new SystemVersionInfo(10, 0, 10240);
|
||||
public static SystemVersionInfo Windows10 => new(10, 0, 10240);
|
||||
|
||||
public static SystemVersionInfo Windows10_1809 => new SystemVersionInfo(10, 0, 17763);
|
||||
public static SystemVersionInfo Windows10_1809 => new(10, 0, 17763);
|
||||
|
||||
public static SystemVersionInfo Windows10_1903 => new SystemVersionInfo(10, 0, 18362);
|
||||
public static SystemVersionInfo Windows10_1903 => new(10, 0, 18362);
|
||||
|
||||
public SystemVersionInfo(int major, int minor, int build)
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
{
|
||||
public static OperationResult<bool> Failed(string message = "")
|
||||
{
|
||||
return new OperationResult<bool>
|
||||
return new()
|
||||
{
|
||||
ResultType = ResultType.Failed,
|
||||
Message = message,
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
public static OperationResult<bool> Success(string message = "")
|
||||
{
|
||||
return new OperationResult<bool>
|
||||
return new()
|
||||
{
|
||||
ResultType = ResultType.Success,
|
||||
Message = message,
|
||||
|
||||
Reference in new issue
Block a user