On writting this code into my project i am getting the error that
Error 1 Inconsistent accessibility: field type
\'System.Collections.Gene
Without posting your entire relevant code i'll try a hunch:
the class Childrendata is declared as not-public and (as we can see) the variable m_children is public
Threfore a public variable cannot expose a less accessible type, in this case, Childrendata
Additionally, what you might want is to turn m_children private as well as this is usually the best practice