INNER CODE UNIT · C#

Generate

ArcadeMakerSources/ArcadeMaker · src/ArcadeMaker.Core/IItem.cs:21

        internal static int Generate() => currentId++;

        public static T GetById<T>(this IEnumerable<T> list, int id) where T : ISetsID
        {
            return list.FirstOrDefault(item => item.ID == id) ?? throw new Exceptions.ResourceNotFoundException(id);
        }
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…