Please comment below...
- ASP.NET Core Error Management with elmah.io by Damien Bowden.
var mc = new MyClass | |
{ | |
Age = 23, | |
FirstName = "Bertrand", | |
LastName = "Le Roy", | |
}; | |
var bytes = MessagePackSerializer.Serialize(mc); | |
var mc2 = MessagePackSerializer.Deserialize<MyClass>(bytes); |
[MessagePackObject] | |
public class MyClass | |
{ | |
// Key is serialization index, it is important for versioning. | |
[Key(0)] | |
public int Age { get; set; } | |
[Key(1)] | |
public string FirstName { get; set; } |
Please comment below...
Please comment below...
http://www.quarkrobot.com/about-this-project/
Library: https://github.com/mellinoe/nativelibraryloader
Please comment below...
from d in data.ToInjectable() | |
select new | |
{ | |
Id = d.Id, | |
Value = d.Name.LimitText(10) | |
} |
[InjectLambda] | |
public static string LimitText(this string value, int maxLength) | |
{ | |
if (value != null && value.Length > maxLength) | |
return value.Substring(0, maxLength); | |
return value; | |
} | |
public static Expression<Func<string, int, string>> LimitText() | |
{ |
Please comment below...
using PhotoSauce.MagicScaler; | |
const int size = 150; | |
const int quality = 75; | |
var settings = new ProcessImageSettings() { | |
Width = size, | |
Height = size, | |
ResizeMode = CropScaleMode.Max, | |
SaveFormat = FileFormat.Jpeg, |
string[] history = new string[] { "ls -a", "dotnet run", "git init" }; | |
ReadLine.AddHistory(history); | |
ReadLine.AutoCompletionHandler = (t, s) => | |
{ | |
if (t.StartsWith("git")) | |
return new string[] { "init", "clone", "pull", "push" }; | |
else | |
return null; | |
}; |