public Either <RfcErrorInfo, int> GetTypeFieldCount(ITypeDescriptionHandle descriptionHandle) { Logger.IfSome(l => l.LogTrace("reading field count by type description handle", descriptionHandle)); var rc = NativeApi.GetTypeFieldCount(descriptionHandle as TypeDescriptionHandle, out var result, out var errorInfo); return(ResultOrError(result, rc, errorInfo)); }