I disassembled a .dll a long-lost ex co-worker wrote because I need to make an adjustment, have no source code, etc.etc.

There is a class with tons of static properties, like so:
   public static string YearMissing
    {
        get
        {
            return Strings.YearMissing;
        }
    }


javascript:emoticon(':D')
I looked at the "Expand Methods" view of this class, and clicked on "Strings" (i.e. part of Strings.YearMissing from above).

It brought me to another Namespace, Resources, and created a Strings class underneath, with a class defined like this:
namespace Resources
{
    [CompilerGenerated, DebuggerNonUserCode, GeneratedCode("Microsoft.VisualStudio.Web.Application.StronglyTypedResourceProxyBuilder", "9.0.0.0")]
    internal class Strings
    {

 
..... lots of cut code ....

internal static string YearMissing { get; }

...
     }
}

I'm trying to understand what I need to adjust in the disassembled code so that I can "recompile" this one class. I don't understand why this Resources namespace is being created, but I'm new at this Reflector stuff.

Any help is appreciated,
toerri



:shock:
tperri
0

Comments

2 comments

  • tperri
    They are generated from Resource files. Which I don't have.

    *sigh*

    Sorry for wasting your time.
    tperri
    0
  • Clive Tong
    Under the Resources node under the assembly, Reflector will show you the resources that are embedded into the assembly. That might help you to generate a resx file.
    Clive Tong
    0

Add comment

Please sign in to leave a comment.