i tried to create a dll using c# and now i have something like this
I have 5 files Extension.cs, Encryption.cs, MySQLQuery.cs, etc.
and in my MySQLQuery file i have somthing like this
using System;
using System.Data;
using System.Text;
using MySql.Data.MySqlClient;
namespace gLibrary
{
public class MySQLQuery
{
protected internal static string connectionString;
public class ConnectionString
{
public string temp { get; set; }
public static void Default(string ConnectionString)
{
connectionString = ConnectionString;
}
public static void dispose()
{
connectionString = null;
}
}
public class ExequteQuery
{
//Some code here...
}
//and so on...
}
}
now i import it then i try to access like this
using gLibrary.MySQLQuery;
but i got an error
but when i tried something like this
using gLibrary;
and accessing like this
MySQLQuery.somefuntion();
it works perfectly but what i want to accomplish is to have something like this
Using gLibrary.MySQLQuery;
namespace something
{
class something
{
//then i want to access it like this
somefunction();
}
}
i hope someone can help me with this, actually i already done it with vb.net but i cant implement to c#
i will appreciate for any help