public fileInformation(storageType storage, string url, string fileName, string subType, string extendedInfo) { this.storage = storage.ToEnumString(); this.url = url; this.fileName = fileName; this.subType = subType; this.extendedInfo = extendedInfo; }
public static string ToEnumString(this storageType me) { switch (me) { case storageType.Server: return("Server"); case storageType.Url: return("Url"); case storageType.Link: return("Link"); default: return("ERROR"); } }