28 changed files with 221 additions and 43 deletions
@ -0,0 +1,3 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 074eed021c3f4ca6abafc0acf2b85a81 |
||||||
|
timeCreated: 1736085541 |
@ -0,0 +1,3 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: e2fd51fb4a2e4c9295c832372c69badb |
||||||
|
timeCreated: 1736086194 |
@ -0,0 +1,7 @@ |
|||||||
|
namespace Tools.ExcelResolver.Editor.Core.DataVisitors |
||||||
|
{ |
||||||
|
public class ExcelStreamDataCreator |
||||||
|
{ |
||||||
|
|
||||||
|
} |
||||||
|
} |
@ -0,0 +1,3 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: a4c1ffa2921644ac84e4b21f34f77766 |
||||||
|
timeCreated: 1736086204 |
@ -0,0 +1,3 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 844ba2c958ce4573b3978cbac07358fa |
||||||
|
timeCreated: 1736085556 |
@ -0,0 +1,22 @@ |
|||||||
|
using System; |
||||||
|
|
||||||
|
namespace Tools.ExcelResolver.Editor |
||||||
|
{ |
||||||
|
public class TBool : TType |
||||||
|
{ |
||||||
|
public override string TypeName => "bool"; |
||||||
|
|
||||||
|
public override Type RealType => typeof(bool); |
||||||
|
|
||||||
|
public override bool TryParseFrom(string s, out object o) |
||||||
|
{ |
||||||
|
if (bool.TryParse(s, out var b)) |
||||||
|
{ |
||||||
|
o = b; |
||||||
|
return true; |
||||||
|
} |
||||||
|
o = null; |
||||||
|
return false; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,3 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 92b5580e41c043c2aeb43c9221a049db |
||||||
|
timeCreated: 1736086791 |
@ -0,0 +1,22 @@ |
|||||||
|
using System; |
||||||
|
|
||||||
|
namespace Tools.ExcelResolver.Editor |
||||||
|
{ |
||||||
|
public class TFloat : TType |
||||||
|
{ |
||||||
|
public override string TypeName => "float"; |
||||||
|
|
||||||
|
public override Type RealType => typeof(float); |
||||||
|
|
||||||
|
public override bool TryParseFrom(string s, out object o) |
||||||
|
{ |
||||||
|
if (float.TryParse(s, out float f)) |
||||||
|
{ |
||||||
|
o = f; |
||||||
|
return true; |
||||||
|
} |
||||||
|
o = null; |
||||||
|
return false; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,3 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: e4714110328f46fa975f1902a0f00c35 |
||||||
|
timeCreated: 1736086750 |
@ -0,0 +1,18 @@ |
|||||||
|
using System; |
||||||
|
|
||||||
|
namespace Tools.ExcelResolver.Editor |
||||||
|
{ |
||||||
|
public class TInt : TType |
||||||
|
{ |
||||||
|
public override string TypeName => "int"; |
||||||
|
|
||||||
|
public override Type RealType => typeof(int); |
||||||
|
|
||||||
|
public override bool TryParseFrom(string s, out object o) |
||||||
|
{ |
||||||
|
var b = int.TryParse(s, out var i); |
||||||
|
o = i; |
||||||
|
return b; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,3 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 3d33275bda624ab0b31156910aa23891 |
||||||
|
timeCreated: 1736085651 |
@ -0,0 +1,17 @@ |
|||||||
|
using System; |
||||||
|
|
||||||
|
namespace Tools.ExcelResolver.Editor |
||||||
|
{ |
||||||
|
public class TString : TType |
||||||
|
{ |
||||||
|
public override string TypeName => "string"; |
||||||
|
|
||||||
|
public override Type RealType => typeof(string); |
||||||
|
|
||||||
|
public override bool TryParseFrom(string s, out object o) |
||||||
|
{ |
||||||
|
o = s; |
||||||
|
return true; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,3 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: fba001041d5043989d675568a184fe9d |
||||||
|
timeCreated: 1736086717 |
@ -0,0 +1,13 @@ |
|||||||
|
using System; |
||||||
|
|
||||||
|
namespace Tools.ExcelResolver.Editor |
||||||
|
{ |
||||||
|
public abstract class TType |
||||||
|
{ |
||||||
|
public abstract string TypeName { get; } |
||||||
|
|
||||||
|
public abstract Type RealType { get; } |
||||||
|
|
||||||
|
public abstract bool TryParseFrom(string s, out object o); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,3 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 06b8bf65d01947f5811f39a18abf478c |
||||||
|
timeCreated: 1736085568 |
Loading…
Reference in new issue