internal static FaultException.FaultCodeData[] GetObjectData(FaultCode code) { FaultException.FaultCodeData[] dataArray = new FaultException.FaultCodeData[GetDepth(code)]; for (int i = 0; i < dataArray.Length; i++) { dataArray[i] = new FaultException.FaultCodeData(); dataArray[i].name = code.Name; dataArray[i].ns = code.Namespace; code = code.SubCode; } return(dataArray); }
internal static FaultException.FaultCodeData[] GetObjectData(FaultCode code) { FaultException.FaultCodeData[] dataArray = new FaultException.FaultCodeData[GetDepth(code)]; for (int i = 0; i < dataArray.Length; i++) { dataArray[i] = new FaultException.FaultCodeData(); dataArray[i].name = code.Name; dataArray[i].ns = code.Namespace; code = code.SubCode; } return dataArray; }