Exemplo n.º 1
0
        private void SetAttribute(NativeMethods.CollationAttribute attr, NativeMethods.CollationAttributeValue value)
        {
            ErrorCode e;

            NativeMethods.ucol_setAttribute(_collatorHandle, attr, value, out e);
            ExceptionFromErrorCode.ThrowIfError(e);
        }
Exemplo n.º 2
0
        private NativeMethods.CollationAttributeValue GetAttribute(NativeMethods.CollationAttribute attr)
        {
            ErrorCode e;

            NativeMethods.CollationAttributeValue value = NativeMethods.ucol_getAttribute(_collatorHandle, attr, out e);
            ExceptionFromErrorCode.ThrowIfError(e);
            return(value);
        }