AE.Core
3.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package AE.Core --version 3.0.0
NuGet\Install-Package AE.Core -Version 3.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AE.Core" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AE.Core --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AE.Core, 3.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AE.Core as a Cake Addin #addin nuget:?package=AE.Core&version=3.0.0 // Install AE.Core as a Cake Tool #tool nuget:?package=AE.Core&version=3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AE.Core
Project containing data logger and serializer.
Logger
Logger can save exception, message and method name. Example:
using AE.Core.Log;
public void LogTest()
{
ILogger logger = new Logger("error", "exeption.log");
logger.Log("test");
}
// in exeption.log file
// [ERROR]: [21.06 03:17:20] - LogTest() - test
ILogger contains two methods:
void Log(string message, string tag = null, string method = null, bool ignoreEvent = false);
void Log(Exception ex, string message = null, string tag = null, string method = null, bool ignoreEvent = false);
ignoreEvent
is needed so as not call an event LoggerHelper.OnLog
Serializer
Serializer can save and load any data. Example:
using AE.Core.Serializer;
using AE.Core.Serializer.Common;
[AESerializable]
public class Test
{
public DateTime Date { get; set; } = DateTime.Now;
public double Number { get; set; } = 2.09;
public List<int> List{ get; set; } = new List<int>
{
1, 2, 3, 4, 5
};
public int[] Array { get; set; } = new int[2] { 1, 2 };
public List<string> StringList { get; set; } = new List<string>
{
"qq", "ww", "ee"
};
public Dictionary<string, string> Dictionary { get; set; } = new Dictionary<string, string>
{
{ "q", "qq" }, { "w", "ww" }, { "e", "ee" }
};
}
var test = new Test();
string data = null;
using (var serializer = new AESerializer())
{
// Get save data
data = serializer.Serialize(test);
}
test = null;
using (var serializer = new AESerializer())
{
// Load from data
test = serializer.Deserialize<Test>(data);
}
SerializerHelper can save data to file as string or byte array. Example:
using AE.Core.Serializer.Common;
var test = new Test();
string data = null;
//...
SerializerHelper.SaveText(data, "fileName"); // .SaveByte() to save string as byte array
data = null;
test = null;
data = SerializerHelper.LoadText("fileName"); // .LoadByte() to load string from byte array
//...
Serializer can save all reference as one object. Example:
using AE.Core.Serializer;
using AE.Core.Serializer.Common;
[AESerializable]
public class Reference : IReference
{
// Don't use this property
public int ReferenceId { get; set; }
// Any data
}
[AESerializable]
public class TestReference
{
// Source
public Reference F1 { get; set; } = new Reference();
// Reference to source will be saved after save and load
[AEReference]
public List<Reference> References { get; set; } = new List<Reference>();
public TestReference()
{
References.Add(F1);
References.Add(F1);
References.Add(F1);
References.Add(F1);
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.