ToString() public method

public ToString ( ) : string
return string
Beispiel #1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder("AuthenticationResult(");

            sb.Append("CurrentTime: ");
            sb.Append(CurrentTime);
            sb.Append(",AuthenticationToken: ");
            sb.Append(AuthenticationToken);
            sb.Append(",Expiration: ");
            sb.Append(Expiration);
            sb.Append(",User: "******"<null>" : User.ToString());
            sb.Append(",PublicUserInfo: ");
            sb.Append(PublicUserInfo == null ? "<null>" : PublicUserInfo.ToString());
            sb.Append(",NoteStoreUrl: ");
            sb.Append(NoteStoreUrl);
            sb.Append(",WebApiUrlPrefix: ");
            sb.Append(WebApiUrlPrefix);
            sb.Append(",SecondFactorRequired: ");
            sb.Append(SecondFactorRequired);
            sb.Append(",SecondFactorDeliveryHint: ");
            sb.Append(SecondFactorDeliveryHint);
            sb.Append(")");
            return(sb.ToString());
        }
        public override string ToString()
        {
            StringBuilder __sb = new StringBuilder("AuthenticationResult(");

            __sb.Append(", CurrentTime: ");
            __sb.Append(CurrentTime);
            __sb.Append(", AuthenticationToken: ");
            __sb.Append(AuthenticationToken);
            __sb.Append(", Expiration: ");
            __sb.Append(Expiration);
            if (User != null && __isset.user)
            {
                __sb.Append(", User: "******"<null>" : User.ToString());
            }
            if (PublicUserInfo != null && __isset.publicUserInfo)
            {
                __sb.Append(", PublicUserInfo: ");
                __sb.Append(PublicUserInfo == null ? "<null>" : PublicUserInfo.ToString());
            }
            if (NoteStoreUrl != null && __isset.noteStoreUrl)
            {
                __sb.Append(", NoteStoreUrl: ");
                __sb.Append(NoteStoreUrl);
            }
            if (WebApiUrlPrefix != null && __isset.webApiUrlPrefix)
            {
                __sb.Append(", WebApiUrlPrefix: ");
                __sb.Append(WebApiUrlPrefix);
            }
            if (__isset.secondFactorRequired)
            {
                __sb.Append(", SecondFactorRequired: ");
                __sb.Append(SecondFactorRequired);
            }
            if (SecondFactorDeliveryHint != null && __isset.secondFactorDeliveryHint)
            {
                __sb.Append(", SecondFactorDeliveryHint: ");
                __sb.Append(SecondFactorDeliveryHint);
            }
            if (Urls != null && __isset.urls)
            {
                __sb.Append(", Urls: ");
                __sb.Append(Urls == null ? "<null>" : Urls.ToString());
            }
            __sb.Append(")");
            return(__sb.ToString());
        }