Custom Editor - Prevent Serialization of a specific variable

Hi,

I have a variable that I do not want serialized in a Custom Inspector, but I also need other Custom Inspectors to serialize the variable. [HideInInspector] is not enough as the variable is still serialized.

For Example:

List<SomeClass> someList;

Class SomeClass
{
	public int someInt;

	// Prevent this from being serialized in one custom inspector, but be serialized in another.
	public string someString; 
}

Any ideas?

Thanks.

HN

[NonSerialized]