Dylan Jackson
Dylan Jackson

Reputation: 811

Allocate memory to an object c#

I am tasked with creating a simple telephone network simulation that includes different types of phone, some of which will have a SMS style function. I would like to be able to simulate these phones having a limited memory capacity. I could simply limit the number of messages a phone can have stored but I think it would be a more elegent solution to use system RAM. Is there a simple way to do this in c#.

There will be a phone class with a textphone class that inherits from it and each phone will be an object created from this.

Upvotes: 1

Views: 287

Answers (1)

Royi Namir
Royi Namir

Reputation: 148574

you can use buffer array , or memory mapped files

Upvotes: 2

Related Questions