This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class DatabaseBlobSerializer : IBlobSerializer | |
{ | |
public byte[] Serialize<T>(T obj) | |
{ | |
if (obj is Color) | |
{ | |
var color = (Color)obj; | |
var bytes = new byte[] { color.R, color.B, color.G, color.A }; | |
return bytes; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1> let a = [1,2,3] | |
a: Int[] = size=3 { | |
[0] = 1 | |
[1] = 2 | |
[2] = 3 | |
} | |
2> a.append(4) | |
3> a | |
$R2: Int[] = size=4 { | |
[0] = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am mgorbach on github. | |
* I am mgorbach (https://keybase.io/mgorbach) on keybase. | |
* I have a public key whose fingerprint is 07BD DE60 F5CE B9F3 97A7 6CFC 0733 B5FE F588 0699 | |
To claim this, I am signing this object: |