Click here to Skip to main content
15,878,970 members
Home / Discussions / C#
   

C#

 
AnswerRe: How do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
CHill607-Feb-17 6:44
mveCHill607-Feb-17 6:44 
QuestionLoad Assembly At Run Time if Implements Interface Pin
Kevin Marois6-Feb-17 12:41
professionalKevin Marois6-Feb-17 12:41 
AnswerRe: Load Assembly At Run Time if Implements Interface Pin
Richard Andrew x646-Feb-17 12:55
professionalRichard Andrew x646-Feb-17 12:55 
GeneralRe: Load Assembly At Run Time if Implements Interface Pin
Kevin Marois6-Feb-17 13:00
professionalKevin Marois6-Feb-17 13:00 
AnswerRe: Load Assembly At Run Time if Implements Interface Pin
Garth J Lancaster6-Feb-17 14:05
professionalGarth J Lancaster6-Feb-17 14:05 
AnswerRe: Load Assembly At Run Time if Implements Interface Pin
Dave Kreskowiak6-Feb-17 14:17
mveDave Kreskowiak6-Feb-17 14:17 
GeneralRe: Load Assembly At Run Time if Implements Interface Pin
Kevin Marois6-Feb-17 14:59
professionalKevin Marois6-Feb-17 14:59 
AnswerRe: Load Assembly At Run Time if Implements Interface Pin
Jon McKee6-Feb-17 15:01
professionalJon McKee6-Feb-17 15:01 
You might not be using the right interface. An object's full name includes its namespace.

Assembly #1:
C#
namespace AssemblyGetTypeTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Assembly a = Assembly.LoadFrom(@"TestTypeLib.dll"); //Full path removed from example :P
            Type testInterface = a.GetType("TestTypeLib.ITestInterface");
            foreach (Type t in a.GetTypes())
            {
                if (testInterface.IsAssignableFrom(t))
                    Console.WriteLine($"Success on type {t.Name} in namespace {testInterface.Namespace}");
                if (typeof(ITestInterface).IsAssignableFrom(t))
                    Console.WriteLine($"Success on type {t.Name} in namespace AssemblyGetTypeTest.");
            }
            Console.ReadKey();
        }
    }
    public interface ITestInterface
    {
        void Test();
    }
}

Assembly #2:
C#
namespace TestTypeLib
{
    public interface ITestInterface
    {
        void Test();
    }
    public class Class1 : ITestInterface
    {
        public void Test(){ }
    }
}

Output:
Success on type ITestInterface in namespace TestTypeLib
Success on type Class1 in namespace TestTypeLib

The interfaces TestTypeLib.ITestInterface and AssemblyGetTypeTest.ITestInterface are different.
AnswerRe: Load Assembly At Run Time if Implements Interface Pin
Pete O'Hanlon6-Feb-17 20:31
mvePete O'Hanlon6-Feb-17 20:31 
AnswerRe: Load Assembly At Run Time if Implements Interface Pin
Bernhard Hiller6-Feb-17 22:28
Bernhard Hiller6-Feb-17 22:28 
QuestionInsert selected combobox item into database table Pin
rattlerrFx6-Feb-17 8:35
rattlerrFx6-Feb-17 8:35 
AnswerRe: Insert selected combobox item into database table Pin
NotPolitcallyCorrect6-Feb-17 8:48
NotPolitcallyCorrect6-Feb-17 8:48 
GeneralRe: Insert selected combobox item into database table Pin
rattlerrFx6-Feb-17 8:57
rattlerrFx6-Feb-17 8:57 
AnswerRe: Insert selected combobox item into database table Pin
Richard Deeming6-Feb-17 10:12
mveRichard Deeming6-Feb-17 10:12 
GeneralRe: Insert selected combobox item into database table Pin
rattlerrFx6-Feb-17 16:58
rattlerrFx6-Feb-17 16:58 
GeneralRe: Insert selected combobox item into database table Pin
Richard Deeming7-Feb-17 3:00
mveRichard Deeming7-Feb-17 3:00 
QuestionI am getting error while saving outlook file in folder and when i am opening outlook file i am getting error Pin
Member 126658716-Feb-17 0:13
Member 126658716-Feb-17 0:13 
AnswerRe: I am getting error while saving outlook file in folder and when i am opening outlook file i am getting error Pin
Nathan Minier6-Feb-17 1:35
professionalNathan Minier6-Feb-17 1:35 
QuestionHow to complete the following C# program on Custom datatypes using interface? Pin
Member 129842755-Feb-17 16:08
Member 129842755-Feb-17 16:08 
AnswerRe: How to complete the following C# program on Custom datatypes using interface? Pin
Pete O'Hanlon5-Feb-17 22:13
mvePete O'Hanlon5-Feb-17 22:13 
GeneralRe: How to complete the following C# program on Custom datatypes using interface? Pin
Member 129842756-Feb-17 5:26
Member 129842756-Feb-17 5:26 
AnswerRe: How to complete the following C# program on Custom datatypes using interface? Pin
Richard MacCutchan5-Feb-17 22:17
mveRichard MacCutchan5-Feb-17 22:17 
QuestionC# Winform: How play powerpoint slide inside webbrowser control Pin
Tridip Bhattacharjee5-Feb-17 10:44
professionalTridip Bhattacharjee5-Feb-17 10:44 
AnswerRe: C# Winform: How play powerpoint slide inside webbrowser control Pin
Richard MacCutchan5-Feb-17 22:12
mveRichard MacCutchan5-Feb-17 22:12 
QuestionHow to run ppt slide one after one by Process.Start Pin
Tridip Bhattacharjee5-Feb-17 8:18
professionalTridip Bhattacharjee5-Feb-17 8:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.