가능한 중복 :
How to initialize array of struct?
Initializing an Array of Structs in C#Initilize 구조체의 배열
의 C#, 비주얼 스튜디오 2010
내가 구조체의 배열을 선언하고 그것을 초기화합니다 같은 시간이지만 올바르게 이해할 수 없다. 구조체로 구성된 rray?
늘 컴파일러를 통해 이동하지만 전혀 가능 내가
private struct PrgStrTrans_t
{
public int id;
public string name;
public string fname;
}
private PrgStrTrans_t[] PrgStrTrans = { {1, "hello", "there"}, {2, "Fun", thisone"}}
을 보관하고 싶은 생각을 보여 다음?
우수, 잘 작동합니다. –