Show / Hide Table of Contents

    Class GuidExtensions

    Inheritance
    Object
    GuidExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Lett.Extensions
    Assembly: Lett.Extensions.dll
    Syntax
    public static class GuidExtensions

    Methods

    | Improve this Doc View Source

    GetNewGuidIfEmpty(Guid)

    当 this 为 Guid.Empty 时,返回新的 Guid/>

    Declaration
    public static Guid GetNewGuidIfEmpty(this Guid this)
    Parameters
    Type Name Description
    Guid this
    Returns
    Type Description
    Guid
    Examples
    var guid = Guid.Empty;
    guid = guid.GetNewGuidIfEmpty();
    • Improve this Doc
    • View Source
    Back to top Copyright (c) 2019 viacooky. All rights reserved.