// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; using Microsoft.AspNetCore.Mvc.Rendering; namespace Demo { public static class Util { public static SelectListItem[] GetOptions() { return new SelectListItem[] { new SelectListItem { Text = "", Value = "" }, new SelectListItem { Text = T1.VER, Value = T1.VER }, new SelectListItem { Text = T1.NOTVER, Value = T1.NOTVER } }; } } }