반응형

C# 45

C++ 클래스를 DLL로 C#에서 사용 하기 | Marshalling C++ class to C#

C++ 클래스를 DLL로 C#에서 사용 하기 | Marshalling C++ class to C# . C++ 콜백 함수 C#에서 전달 하기 . 관련 링크 남김. https://www.codeproject.com/Articles/18032/How-to-Marshal-a-C-Class How to Marshal a C++ Class An article on how to marshal a C++ class www.codeproject.com https://brokenevent.com/blog/2020-09-02 Working with C++ Interface Classes from C# - Broken Event First of all I should warn that this method is not the..

C# 2023.01.30

C# List<T> FindIndex 사용법

C# List FindIndex 사용법 List를 사용 하여 목록을 사용 할 때 특정 값에 일치 하는 아이템의 인덱스( 0부터 시작 아이디)를 리턴 해주는 메소드 입니다. 메소드: public int FindIndex (Predicate match); public int FindIndex (int startIndex, Predicate match); public int FindIndex (int startIndex, int count, Predicate match); 리턴값: 성공 ) 찾는 항목이 있을 경우 0보다 큰 인덱스 값. 실패) 없을 경우 -1 값을 리턴 예제) Unity C# int index = itemList.FindIndex(x => x.name.Equals(itemName) ); 1 2..

C# 2023.01.18
반응형