Thanks to visit codestin.com
Credit goes to github.com

Skip to content

replace GetExecutingAssembly with more proper assembly #183

@SelvinPL

Description

@SelvinPL

Can we replace code like:

Assembly executingAssembly = Assembly.GetExecutingAssembly();
string str = typeof(RVSplitContainer).Namespace + ".Resources.";
m_bitmaps[4] = new Bitmap(executingAssembly.GetManifestResourceStream(str + "SplitterHorizExpand.png"));

from here (and in similar places)

with more context aware code, like:

Assembly executingAssembly = typeof(RVSplitContainer).Assembly;
string str = typeof(RVSplitContainer).Namespace + ".Resources.";
m_bitmaps[4] = new Bitmap(executingAssembly.GetManifestResourceStream(str + "SplitterHorizExpand.png"));

why?

Because in other case it is not working with single code publish.
image

it is working fine without publishing as single file but this nasty single file assembly connnot be referenced

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions