c# class instance to enumerable code example Example: new ienumerable IEnumerable<object> en = new List<object>();