コード例 #1
0
 /// <summary>
 /// Converts the specified <paramref name="value"/> into a <see cref="Guid"/>.
 /// </summary>
 /// <param name="value">The numeric value to convert.</param>
 /// <returns>An instance of <see cref="Guid"/>.</returns>
 public static Guid ToGuid(this long value)
 {
     return(GuidUtils.ToGuid(value));
 }
コード例 #2
0
 /// <summary>
 /// Converts the specified GUID <paramref name="values"/> to their numerical representations.
 /// </summary>
 /// <param name="values">A collection of GUIDs to be converted.</param>
 /// <returns>An array of <see cref="long"/> representations of the specified GUIDs.</returns>
 public static long[] ToInt64Array(this Guid[] values)
 {
     return(GuidUtils.ToInt64Array(values));
 }
コード例 #3
0
 /// <summary>
 /// Converts the specified GUID <paramref name="values"/> to their numerical representations.
 /// </summary>
 /// <param name="values">A collection of GUIDs to be converted.</param>
 /// <returns>An array of <see cref="long"/> representations of the specified GUIDs.</returns>
 public static long[] ToInt64Array(this IEnumerable <Guid> values)
 {
     return(GuidUtils.ToInt64Array(values));
 }
コード例 #4
0
 /// <summary>
 /// Converts the specified GUID <paramref name="value"/> to a numerical representation.
 /// </summary>
 /// <param name="value">The GUID to be converted.</param>
 /// <returns>An <see cref="long"/> representation of the GUID.</returns>
 public static long ToInt64(this Guid value)
 {
     return(GuidUtils.ToInt64(value));
 }
コード例 #5
0
 /// <summary>
 /// Converts the specified GUID <paramref name="values"/> to their numerical representations.
 /// </summary>
 /// <param name="values">A collection of GUIDs to be converted.</param>
 /// <returns>An array of <see cref="int"/> representations of the specified GUIDs.</returns>
 public static int[] ToInt32Array(this IEnumerable <Guid> values)
 {
     return(GuidUtils.ToInt32Array(values));
 }
コード例 #6
0
 /// <summary>
 /// Converts the specified GUID <paramref name="values"/> to their numerical representations.
 /// </summary>
 /// <param name="values">A collection of GUIDs to be converted.</param>
 /// <returns>An array of <see cref="int"/> representations of the specified GUIDs.</returns>
 public static int[] ToInt32Array(this Guid[] values)
 {
     return(GuidUtils.ToInt32Array(values));
 }
コード例 #7
0
 /// <summary>
 /// Converts the specified GUID <paramref name="value"/> to a numerical representation.
 /// </summary>
 /// <param name="value">The GUID to be converted.</param>
 /// <returns>An <see cref="int"/> representation of the GUID.</returns>
 public static int ToInt32(this Guid value)
 {
     return(GuidUtils.ToInt32(value));
 }
コード例 #8
0
 /// <summary>
 /// Converts the specified array of numeric <paramref name="values"/> to a corresponding <see cref="Guid"/> array.
 /// </summary>
 /// <param name="values">The values to be converted.</param>
 /// <returns>An array of <see cref="Guid"/>.</returns>
 public static Guid[] ToGuidArray(this IEnumerable <long> values)
 {
     return(GuidUtils.ToGuidArray(values));
 }