private void SetAttribute(NativeMethods.CollationAttribute attr, NativeMethods.CollationAttributeValue value) { ErrorCode e; NativeMethods.ucol_setAttribute(_collatorHandle, attr, value, out e); ExceptionFromErrorCode.ThrowIfError(e); }
private NativeMethods.CollationAttributeValue GetAttribute(NativeMethods.CollationAttribute attr) { ErrorCode e; NativeMethods.CollationAttributeValue value = NativeMethods.ucol_getAttribute(_collatorHandle, attr, out e); ExceptionFromErrorCode.ThrowIfError(e); return(value); }