Is there a c# equivalent to c malloc and realloc? - C#