private void OnValidate()
 {
     if (GenClass != null)
     {
         GenClass.OnValidate();
     }
 }