Exemple #1
0
 /// <summary>
 ///		Compares the current <see cref="ErrorInt32"/> with another <see cref="ErrorInt32"/> and returns an integer that indicates whether the current <see cref="ErrorInt32"/> precedes, follows, or occurs in the same position in the sort order as the other <see cref="ErrorInt32"/>.
 /// </summary>
 /// <param name="other">An <see cref="ErrorInt32"/> to compare with this <see cref="ErrorInt32"/>.</param>
 /// <returns>
 ///		A value that indicates the relative order of the <see cref="ErrorInt32"/>s being compared. The return value has these meanings:
 ///		<list type="table">
 ///			<listheader>
 ///				<term>Value</term>
 ///				<term>Meaning</term>
 ///			</listheader>
 ///			<item>
 ///				<description>Less than zero</description>
 ///				<description>This <see cref="ErrorInt32"/> precedes <paramref name="other" /> in the sort order.</description>
 ///			</item>
 ///			<item>
 ///				<description>Zero</description>
 ///				<description>This <see cref="ErrorInt32"/> occurs in the same position in the sort order as <paramref name="other" />.</description>
 ///			</item>
 ///			<item>
 ///				<description>Greater than zero</description>
 ///				<description>This <see cref="ErrorInt32"/> follows <paramref name="other" /> in the sort order.</description>
 ///			</item>
 ///		</list>
 /// </returns>
 public int CompareTo(ErrorInt32 other) => value.CompareTo(other.value);
Exemple #2
0
 public static extern bool imageflow_context_raise_error(ContextPointer context, ErrorInt32 error_code, [MarshalAs(UnmanagedType.LPStr)][In] string message, [MarshalAs(UnmanagedType.LPStr)][In] string file = null, int line = -1, [MarshalAs(UnmanagedType.LPStr)][In] string function_name = null);
Exemple #3
0
 /// <summary>
 ///		Indicates whether the current <see cref="ErrorInt32"/> is equal to another <see cref="ErrorInt32"/>.
 /// </summary>
 /// <param name="other">An <see cref="ErrorInt32"/> to compare with this <see cref="ErrorInt32"/>.</param>
 /// <returns>
 ///		<see langword="true"/> if the current <see cref="ErrorInt32"/> is equal to the <paramref name="other" /> parameter; otherwise, <see langword="false"/>.
 /// </returns>
 public bool Equals(ErrorInt32 other) => value.Equals(other.value);