J Julia Oct 11, 2004 #3 I am loading a resource from a resource file using GetManifestResourceStream and i dont want to pass the full name of the resource Thanks. Patrik Löwendahl said: Why do you need the namespace in compile-time? -- Patrik Löwendahl [C# MVP] www.cshrp.net - "Elegant code by witty programmers" Julia said: How do i get the namespace of a class at compile time? Thanks Click to expand... Click to expand...
I am loading a resource from a resource file using GetManifestResourceStream and i dont want to pass the full name of the resource Thanks. Patrik Löwendahl said: Why do you need the namespace in compile-time? -- Patrik Löwendahl [C# MVP] www.cshrp.net - "Elegant code by witty programmers" Julia said: How do i get the namespace of a class at compile time? Thanks Click to expand... Click to expand...
J Jon Skeet [C# MVP] Oct 11, 2004 #4 Julia said: I am loading a resource from a resource file using GetManifestResourceStream and i dont want to pass the full name of the resource Click to expand... Well, you can use typeof(...).Namespace
Julia said: I am loading a resource from a resource file using GetManifestResourceStream and i dont want to pass the full name of the resource Click to expand... Well, you can use typeof(...).Namespace
© ©tefan ©imek Oct 11, 2004 #5 There is an overload of GetManifestResourceStream() taking Type as it's first argument, in which case the Type's namespace is used. HTH, Stefan Julia said: I am loading a resource from a resource file using GetManifestResourceStream and i dont want to pass the full name of the resource Thanks. Patrik Löwendahl said: Why do you need the namespace in compile-time? -- Patrik Löwendahl [C# MVP] www.cshrp.net - "Elegant code by witty programmers" Julia said: How do i get the namespace of a class at compile time? Thanks Click to expand... Click to expand... Click to expand...
There is an overload of GetManifestResourceStream() taking Type as it's first argument, in which case the Type's namespace is used. HTH, Stefan Julia said: I am loading a resource from a resource file using GetManifestResourceStream and i dont want to pass the full name of the resource Thanks. Patrik Löwendahl said: Why do you need the namespace in compile-time? -- Patrik Löwendahl [C# MVP] www.cshrp.net - "Elegant code by witty programmers" Julia said: How do i get the namespace of a class at compile time? Thanks Click to expand... Click to expand... Click to expand...
J Jon Skeet [C# MVP] Oct 11, 2004 #7 Julia said: I am loading an HTML page which type should i use?! Click to expand... Any type in the namespace you want to get...
Julia said: I am loading an HTML page which type should i use?! Click to expand... Any type in the namespace you want to get...