public IEncodeable ReadEncodeable(string fieldName, System.Type systemType)
{
if (systemType == null) throw new ArgumentNullException("systemType");
IEncodeable encodeable = Activator.CreateInstance(systemType) as IEncodeable;
if (encodeable == null)
{
throw new ServiceResultException(
StatusCodes.BadDecodingError,
Utils.Format("Cannot decode type '{0}'.", systemType.FullName));
}
encodeable.Decode(this);
return encodeable;
}