public static int Increment(this DocumentLocal <int> local, Document document) { var value = local[document]; local[document] = ++value; return(value); }
public T Variable <T>(DocumentLocal <T> local) { return(local[this]); }