mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Made ISerializer generic
This commit is contained in:
@@ -9,7 +9,7 @@ using mRemoteNG.Tree.Root;
|
||||
|
||||
namespace mRemoteNG.Config.Serializers
|
||||
{
|
||||
public class CsvConnectionsSerializerMremotengFormat : ISerializer
|
||||
public class CsvConnectionsSerializerMremotengFormat : ISerializer<string>
|
||||
{
|
||||
private string _csv = "";
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ using mRemoteNG.Tree.Root;
|
||||
|
||||
namespace mRemoteNG.Config.Serializers
|
||||
{
|
||||
public class CsvConnectionsSerializerRemoteDesktop2008Format : ISerializer
|
||||
public class CsvConnectionsSerializerRemoteDesktop2008Format : ISerializer<string>
|
||||
{
|
||||
private string _csv = "";
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ using mRemoteNG.Tree.Root;
|
||||
|
||||
namespace mRemoteNG.Config.Serializers
|
||||
{
|
||||
public class DataTableSerializer
|
||||
public class DataTableSerializer : ISerializer<DataTable>
|
||||
{
|
||||
private DataTable _dataTable;
|
||||
private const string TableName = "tblCons";
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace mRemoteNG.Config.Serializers
|
||||
{
|
||||
public interface ISerializer
|
||||
public interface ISerializer<TFormat>
|
||||
{
|
||||
string Serialize(ConnectionTreeModel connectionTreeModel);
|
||||
TFormat Serialize(ConnectionTreeModel connectionTreeModel);
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ using mRemoteNG.Tree.Root;
|
||||
|
||||
namespace mRemoteNG.Config.Serializers
|
||||
{
|
||||
public class SqlConnectionsSerializer : ISerializer
|
||||
public class SqlConnectionsSerializer : ISerializer<string>
|
||||
{
|
||||
private SqlConnection _sqlConnection;
|
||||
private SqlCommand _sqlQuery;
|
||||
|
||||
@@ -17,7 +17,7 @@ using mRemoteNG.Tree.Root;
|
||||
|
||||
namespace mRemoteNG.Config.Serializers
|
||||
{
|
||||
public class XmlConnectionsSerializer : ISerializer
|
||||
public class XmlConnectionsSerializer : ISerializer<string>
|
||||
{
|
||||
private SecureString _password = GeneralAppInfo.EncryptionKey;
|
||||
private XmlTextWriter _xmlTextWriter;
|
||||
|
||||
Reference in New Issue
Block a user