EmbeddedResources property on IAssembly? #133

Open
opened 2012-12-12 11:30:08 -06:00 by erik-kallen · 1 comment
erik-kallen commented 2012-12-12 11:30:08 -06:00 (Migrated from github.com)

I think the addition of an EmbeddedResources property containing all embedded resources in an IAssembly would be a nice addition.

Interface:

public interace IEmbeddedResource {
    string Name { get; }
    Stream GetContent();
}

public interface IAssembly {
    ...
    IEnumerable<IEmbeddedResources> EmbeddedResources { get; }
}

What do you think? I need funcitonality similar to this so if we discuss and agree on a good way to do it, your other users could benefit as well.

I think the addition of an EmbeddedResources property containing all embedded resources in an IAssembly would be a nice addition. Interface: ``` public interace IEmbeddedResource { string Name { get; } Stream GetContent(); } public interface IAssembly { ... IEnumerable<IEmbeddedResources> EmbeddedResources { get; } } ``` What do you think? I need funcitonality similar to this so if we discuss and agree on a good way to do it, your other users could benefit as well.
dgrunwald commented 2013-05-11 07:08:59 -05:00 (Migrated from github.com)

I agree this would be nice to have.

But at the same time, we don't want to store the (potentially huge) resource content in memory with the type system. We'd have to re-open the .dll file and extract the resource on demand. (XML documentation already works using the same principle)

I agree this would be nice to have. But at the same time, we don't want to store the (potentially huge) resource content in memory with the type system. We'd have to re-open the .dll file and extract the resource on demand. (XML documentation already works using the same principle)
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-icsharpcode/NRefactory#133
No description provided.