I
I
Ingvar Von Bjork2017-02-12 19:51:05
C++ / C#
Ingvar Von Bjork, 2017-02-12 19:51:05

Is it possible to add custom properties to an existing class?

I don’t really want to load the code with any other arrays, but just add a couple of properties to the class to store data. Is it possible to implement this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2017-02-12
@GavriKos

Inheritance is great for this purpose.

J
John_Nash, 2017-02-13
@John_Nash

Use extensions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question