public Config.Config ToConfig() { Config.Config c = new Config.Config(); c.AddToBottom(index); c.AddToBottom(father == null ? "0" : (father is long?father.ToString() : (((BaseFile)father).index.ToString()))); c.AddToBottom(son == null ? "0" : (son is long?son.ToString() : (((BaseFile)son).index.ToString()))); c.AddToBottom(left == null ? "0" : (left is long?left.ToString() : (((BaseFile)left).index.ToString()))); c.AddToBottom(right == null ? "0" : (right is long?right.ToString() : (((BaseFile)right).index.ToString()))); c.AddToBottom(url); c.AddToBottom((int)type); c.AddToBottom((int)state); c.AddToBottom(length); c.AddToBottom(modify); c.AddToBottom(score); return(c); }