4thSpace
4thSpace

Reputation: 44352

Creating a library that contains instance members

In regards to my a little to late discovery that static libraries (obviously) can't have instance members, How to reference property of static library, is there a way to create a shared library that contains both instance and static members?

On way that probably works is to create a class file, save it to some shared directory and reference it from multiple projects. Is there a better way?

Upvotes: 0

Views: 108

Answers (1)

Adam Alexander
Adam Alexander

Reputation: 15180

I just read an excellent blog post this morning with a nice writeup about sharing code:

http://www.mobileorchard.com/code-sharing-via-static-libraries-and-cross-project-references

Upvotes: 1

Related Questions