public System.String ToJSON() { return("{" + "\"label\": \"" + label + "\", " + "\"size\": " + size.ToString() + ", " + "\"stride\": " + stride.ToString() + "}"); }
public System.String ToJSON() { System.String ret = "{"; ret += "\"dim\": ["; ret += System.String.Join(", ", dim.Select(a => a.ToJSON()).ToArray()); ret += "], \"data_offset\" : " + data_offset.ToString() + "}"; return(ret); }
/** Convert */ public static void Convert(System.UInt32 a_in_value, System.Text.StringBuilder a_out_stringbuilder, ConvertToJsonStringOption a_option) { string t_string = a_in_value.ToString(Config.CULTURE); a_out_stringbuilder.Append(t_string); if ((a_option & ConvertToJsonStringOption.NoUnsignedNumberSuffix) == 0) { a_out_stringbuilder.Append("l"); } return; }
/// <summary> /// Action: Advertise /// </summary> /// <param name="Nonce">Associated State Variable: A_ARG_TYPE_Nonce</param> /// <param name="HostId">Associated State Variable: A_ARG_TYPE_EndpointID</param> /// <param name="ApplicationId">Associated State Variable: A_ARG_TYPE_EndpointID</param> /// <param name="ApplicationVersion">Associated State Variable: A_ARG_TYPE_Version</param> /// <param name="ApplicationData">Associated State Variable: A_ARG_TYPE_AnyString</param> /// <param name="HostFriendlyName">Associated State Variable: A_ARG_TYPE_Name</param> /// <param name="ExperienceFriendlyName">Associated State Variable: A_ARG_TYPE_Name</param> /// <param name="ExperienceIconUri">Associated State Variable: A_ARG_TYPE_Uri</param> /// <param name="ExperienceEndpointUri">Associated State Variable: A_ARG_TYPE_Uri</param> /// <param name="ExperienceEndpointData">Associated State Variable: A_ARG_TYPE_AnyString</param> /// <param name="SignatureAlgorithm">Associated State Variable: A_ARG_TYPE_SignAlgorithm</param> /// <param name="Signature">Associated State Variable: A_ARG_TYPE_Signature</param> /// <param name="HostCertificate">Associated State Variable: A_ARG_TYPE_Certificate</param> public void Advertise(System.UInt32 Nonce, System.String HostId, System.String ApplicationId, System.String ApplicationVersion, System.String ApplicationData, System.String HostFriendlyName, System.String ExperienceFriendlyName, System.String ExperienceIconUri, System.String ExperienceEndpointUri, System.String ExperienceEndpointData, System.String SignatureAlgorithm, System.String Signature, System.String HostCertificate) { m_logger.LogInfo("RemotedExperienceService_Advertise(" + Nonce.ToString() + HostId.ToString() + ApplicationId.ToString() + ApplicationVersion.ToString() + ApplicationData.ToString() + HostFriendlyName.ToString() + ExperienceFriendlyName.ToString() + ExperienceIconUri.ToString() + ExperienceEndpointUri.ToString() + ExperienceEndpointData.ToString() + SignatureAlgorithm.ToString() + Signature.ToString() + HostCertificate.ToString() + ")"); //ToDo: Add Your implementation here, and remove exception // Set the rdp login username/password in the config file. SoftSledConfig currConfig = SoftSledConfigManager.ReadConfig(); currConfig.IsPaired = true; currConfig.RdpLoginUserName = "******"; currConfig.RdpLoginPassword = "******"; SoftSledConfigManager.WriteConfig(currConfig); throw (new UPnPCustomException(800, "This method has not been completely implemented...")); }
/** Convert */ public static void Convert(System.UInt32 a_in_value, System.Text.StringBuilder a_out_stringbuilder, ConvertToJsonStringOption a_option) { try{ string t_string = a_in_value.ToString(Config.CULTURE); a_out_stringbuilder.Append(t_string); if ((a_option & ConvertToJsonStringOption.NoUnsignedNumberSuffix) == 0) { a_out_stringbuilder.Append("l"); } return; }catch (System.Exception t_exception) { Tool.DebugReThrow(t_exception); } //不明。 Tool.Assert(false); return; }
/// <summary> /// Converts the numeric value of this instance to its equivalent string representation. /// </summary> /// <returns>The string representation of the value of this instance, consisting of a sequence of digits ranging from 0 to 9 with no leading zeroes.</returns> public override string ToString() => _value.ToString();
public System.String ToJSON() { return("{\"data\" : " + data.ToString() + "}"); }
/// <summary> /// Action: Inhibit /// </summary> /// <param name="Nonce">Associated State Variable: A_ARG_TYPE_Nonce</param> /// <param name="HostId">Associated State Variable: A_ARG_TYPE_EndpointID</param> /// <param name="ApplicationId">Associated State Variable: A_ARG_TYPE_EndpointID</param> /// <param name="ApplicationVersion">Associated State Variable: A_ARG_TYPE_Version</param> /// <param name="ApplicationData">Associated State Variable: A_ARG_TYPE_AnyString</param> /// <param name="ReasonCode">Associated State Variable: A_ARG_TYPE_ReasonCode</param> /// <param name="ReasonMessage">Associated State Variable: A_ARG_TYPE_AnyString</param> /// <param name="SignatureAlgorithm">Associated State Variable: A_ARG_TYPE_SignAlgorithm</param> /// <param name="Signature">Associated State Variable: A_ARG_TYPE_Signature</param> /// <param name="HostCertificate">Associated State Variable: A_ARG_TYPE_Certificate</param> public void Inhibit(System.UInt32 Nonce, System.String HostId, System.String ApplicationId, System.String ApplicationVersion, System.String ApplicationData, System.UInt32 ReasonCode, System.String ReasonMessage, System.String SignatureAlgorithm, System.String Signature, System.String HostCertificate) { System.Diagnostics.Debug.WriteLine("RemotedExperienceService_Inhibit(" + Nonce.ToString() + HostId.ToString() + ApplicationId.ToString() + ApplicationVersion.ToString() + ApplicationData.ToString() + ReasonCode.ToString() + ReasonMessage.ToString() + SignatureAlgorithm.ToString() + Signature.ToString() + HostCertificate.ToString() + ")"); //ToDo: Add Your implementation here, and remove exception throw (new UPnPCustomException(800, "This method has not been completely implemented...")); }