큰 변화는 없고, XSDObjectGen 에서의 소스 생성에만 작은 변화가 있습니다.
Collection 에 대한 자동 생성된 코드인 경우, 기본적으로 ArrayList 를 상속받아서 처리를 하지만, 다음과 같이 정적 배열로 변환할 때에는 조금 귀찮은 코드가 사용되어져야 하는데요.
TFSLocationT [] itemArray = (TFSLocationT[])itemLists.ToArray(typeof(TFSLocationT));
이 정도의 코드는 XSDObjectGen 에서 쉽게 자동 생성해 줄 수 있기 때문에, 다음과 같은 코드를 자동 생성하도록 수정했습니다.
public partial class TFSLocationTCollection : ArrayList
{
;
;
public TFSLocationT [] Arrays
{
get { return (TFSLocationT[])this.ToArray(typeof(TFSLocationT)); }
}
}
따라서, 앞으로는 다음과 같은 식으로 간단하게 코딩하실 수 있습니다.
TFSLocationT [] itemArray = itemList.Arrays;