TersoSolutions.Jetstream.SDK.Application.Model.Deserialized.GetDeviceDefinitionsResponse.JetstreamGetDeviceDefinitionsResponseDeviceDefinitionCommandListDeviceSpecificCommandList.Serialize C# (CSharp) 메소드

Serialize() 공개 메소드

Serializes current JetstreamGetDeviceDefinitionsResponseDeviceDefinitionCommandListDeviceSpecificCommandList object into an XML document
public Serialize ( ) : string
리턴 string
        public virtual string Serialize()
        {
            System.IO.StreamReader streamReader = null;
            System.IO.MemoryStream memoryStream = null;
            try
            {
                memoryStream = new System.IO.MemoryStream();
                Serializer.Serialize(memoryStream, this);
                memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
                streamReader = new System.IO.StreamReader(memoryStream);
                return streamReader.ReadToEnd();
            }
            finally
            {
                if ((streamReader != null))
                {
                    streamReader.Dispose();
                }
                if ((memoryStream != null))
                {
                    memoryStream.Dispose();
                }
            }
        }