C#/C# 문법 범범조조 2021. 8. 25. 18:40
참고 https://www.c-sharpcorner.com/blogs/first-firstordefault-single-singleordefault-in-c-sharp 소개 오늘은 C# LINQ 구문에서 형변환을 도와주는 OfType 메서드에 대해서 알아 보려고 합니다. OfType 메서드를 이용하면, LINQ 구문에서 손쉽게 형변환을 할 수 있는데요. 예제 코드를 통해 자세히 보여 드리도록 하겠습니다. 예제 코드 using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace ConsoleApp7 { static class Program { static void Main(string[..
더 읽기