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
import 'reflect-metadata' | |
import { Exe, executable, registerExecutable } from './executable' | |
import { Container, interfaces, injectable, inject } from 'inversify' | |
//! EXAMPLE !!! | |
const c = new Container({ autoBindInjectable: true }) | |
@injectable() |
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
struct ProductOrderedDTO | |
{ | |
IntPtr _ptr; | |
int _byteSize; | |
public int ByteSize => _byteSize; | |
const int QUANTITY_OFFSET = 0; | |
const int QUANTITY_SIZEOF = sizeof(int); |
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
public class list_vs_array | |
{ | |
int[] data; | |
List<int> list; | |
int calcSum; | |
public list_vs_array() | |
{ | |
data = Enumerable.Range(1, 999).ToArray(); |
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
public class vectorization_locality | |
{ | |
int[] data; | |
int baseSum; | |
public vectorization_locality() | |
{ | |
data = Enumerable.Range(1, 999).ToArray(); |
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
using static LangExt; | |
namespace OptionResultDemo | |
{ | |
enum ErrorCodes | |
{ | |
AllIsFine, | |
Happens, | |
DidNotHappenOops, |