Click here to Skip to main content
15,351,867 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# - New to programming! Stuck! Can someone help explain this code? Pin
Dave Kreskowiak2-Jul-16 5:15
mveDave Kreskowiak2-Jul-16 5:15 
AnswerRe: C# - New to programming! Stuck! Can someone help explain this code? Pin
Richard MacCutchan2-Jul-16 5:17
mveRichard MacCutchan2-Jul-16 5:17 
AnswerRe: C# - New to programming! Stuck! Can someone help explain this code? Pin
BillWoodruff3-Jul-16 1:55
mveBillWoodruff3-Jul-16 1:55 
AnswerRe: C# - New to programming! Stuck! Can someone help explain this code? Pin
koolprasadd6-Jul-16 18:38
professionalkoolprasadd6-Jul-16 18:38 
QuestionLoading a type dynamically Pin
Super Lloyd1-Jul-16 18:42
MemberSuper Lloyd1-Jul-16 18:42 
AnswerRe: Loading a type dynamically Pin
Eddy Vluggen2-Jul-16 0:50
professionalEddy Vluggen2-Jul-16 0:50 
AnswerRe: Loading a type dynamically Pin
BillWoodruff3-Jul-16 1:58
mveBillWoodruff3-Jul-16 1:58 
GeneralRe: Loading a type dynamically Pin
Super Lloyd3-Jul-16 2:25
MemberSuper Lloyd3-Jul-16 2:25 
Hi Bill,

After some testing I gave up on UWP!
This is for the serializer and UWP stream would have been incompatible with the desktop due to the lack of TypeConverter and ISerializable. Even more vexing I can't find the list of loaded assemblies!

So my serializer target is only desktop .NET, iOS, Android and (coming when VS support .NET Core properly) .NET Core.

As a side note, yes it fails, in a windows forms project...
(it being Type.GetType("System.Drawing.Size,System.Drawing") returns null)
Although, FYI, it succeeed if I use the assembly fullname (with version and evidence) which I don't want to...

So for now I just do the code below now, it works! Wink | ;)
C#
public static Type GetType(string typeName, string assemblyName)
{
    Type result;
    var tass = AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault(x => x.GetName().Name == assemblyName);
    if (tass != null)
        return tass.GetType(typeName);
    return null;
}

BTW, did you get the link I send you!?
There is a live version of the serializer now!
(F5 on test project duplicate a winform)
GitHub - superlloyd/Galador.Reflection[^]
A new .NET Serializer
All in one Menu-Ribbon Bar
Taking over the world since 1371!

QuestionSplit Excel Workbook to sheets Pin
Magic19041-Jul-16 9:05
MemberMagic19041-Jul-16 9:05 
AnswerRe: Split Excel Workbook to sheets Pin
Gerry Schmitz1-Jul-16 9:39
mveGerry Schmitz1-Jul-16 9:39 
AnswerRe: Split Excel Workbook to sheets Pin
Richard MacCutchan1-Jul-16 21:22
mveRichard MacCutchan1-Jul-16 21:22 
AnswerRe: Split Excel Workbook to sheets Pin
Patrice T2-Jul-16 17:26
mvePatrice T2-Jul-16 17:26 
QuestionLinq to SQL multiple tables problem Pin
Member 119277061-Jul-16 8:23
MemberMember 119277061-Jul-16 8:23 
AnswerRe: Linq to SQL multiple tables problem Pin
Gerry Schmitz1-Jul-16 9:52
mveGerry Schmitz1-Jul-16 9:52 
QuestionHow to render empty byte array element as xml tag in c#? Pin
Raghavendra.Kodimala1-Jul-16 4:42
professionalRaghavendra.Kodimala1-Jul-16 4:42 
AnswerRe: How to render empty byte array element as xml tag in c#? Pin
Gerry Schmitz1-Jul-16 5:26
mveGerry Schmitz1-Jul-16 5:26 
GeneralRe: How to render empty byte array element as xml tag in c#? Pin
Raghavendra.Kodimala1-Jul-16 6:40
professionalRaghavendra.Kodimala1-Jul-16 6:40 
GeneralRe: How to render empty byte array element as xml tag in c#? Pin
Gerry Schmitz1-Jul-16 9:33
mveGerry Schmitz1-Jul-16 9:33 
QuestionLock the Computer Pin
A-M-S-S1-Jul-16 3:47
MemberA-M-S-S1-Jul-16 3:47 
AnswerRe: Lock the Computer Pin
Pete O'Hanlon1-Jul-16 4:23
mvaPete O'Hanlon1-Jul-16 4:23 
GeneralRe: Lock the Computer Pin
Richard MacCutchan1-Jul-16 7:26
mveRichard MacCutchan1-Jul-16 7:26 
GeneralRe: Lock the Computer Pin
Pete O'Hanlon1-Jul-16 8:04
mvaPete O'Hanlon1-Jul-16 8:04 
JokeRe: Lock the Computer Pin
Peter_in_27801-Jul-16 12:38
professionalPeter_in_27801-Jul-16 12:38 
GeneralRe: Lock the Computer Pin
A-M-S-S3-Jul-16 5:17
MemberA-M-S-S3-Jul-16 5:17 
QuestionRe: Lock the Computer Pin
Eddy Vluggen3-Jul-16 8:48
professionalEddy Vluggen3-Jul-16 8:48 

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.