fork download
  1. using System.Collections.Generic;
  2.  
  3. public class Program {
  4. public static void Main() {
  5. Arquivo arquivo = new Arquivo();
  6. ArquivoVersao versao = new ArquivoVersao();
  7. versao.XNOME = "teste";
  8. var list = new List<ArquivoVersao>();
  9. list.Add(versao);
  10. arquivo.ArquivoVersoes = list;
  11. //arquivoVersoes é uma lista de Versoes
  12. }
  13. }
  14.  
  15. public class Arquivo {
  16. public string ARQUIVO_GUID { get; set; }
  17. public string XARQUIVO { get; set; }
  18. public string TAG { get; set; }
  19. public string EXTENSAO { get; set; }
  20. public string URL { get; set; }
  21. public bool IS_STREAM { get; set; }
  22. public string ULT_ARQUIVO_VERSAO_GUID { get; set; }
  23. public string TIPO_DE_ARQUIVO_GUID { get; set; }
  24. public string DIRETORIO_GUID { get; set; }
  25. // public TipoDeArquivo TipoDeArquivo { get; set; }
  26. public List<ArquivoVersao> ArquivoVersoes { get; set; }
  27. }
  28.  
  29.  
  30. public class ArquivoVersao {
  31. public string XNOME { get; set; }
  32. }
  33.  
  34. //https://pt.stackoverflow.com/q/49774/101
Success #stdin #stdout 0s 130944KB
stdin
Standard input is empty
stdout
Standard output is empty