using System; using System.Runtime.CompilerServices; namespace Gestor.Model.API { public class UploadFile { private string _extensao; public int Ano { get; set; } public byte[] Arquivo { get; set; } public string Extensao { get { return this._extensao; } set { string lower; if (value != null) { string str = value.Trim(); if (str != null) { lower = str.ToLower(); } else { lower = null; } } else { lower = null; } this._extensao = lower; } } public Guid Id { get; set; } public UploadFile() { } } }