Merge pull request #1439 from BrzVlad/feature-managed-allocator
[mono.git] / mcs / class / corlib / System / ResolveEventArgs.cs
index e00e43a68e256587553d61ab0dcb956591b19491..98ca78e261f61087dca2b6103a841c69353beefa 100644 (file)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+using System.Runtime.InteropServices;
+using System.Reflection;
 
 namespace System
 {
+       [ComVisible (true)]
        public class ResolveEventArgs : EventArgs
        {
                private string m_Name;
+               private Assembly m_Requesting;
 
                public ResolveEventArgs (string name)
                {
                        m_Name = name;
                }
 
+               public ResolveEventArgs (string name, Assembly requestingAssembly) {
+                       this.m_Name = name;
+                       this.m_Requesting = requestingAssembly;
+               }
+
                public string Name {
                        get {
                                return m_Name;
                        }
                }
+
+               public Assembly RequestingAssembly {
+                       get {
+                               return m_Requesting;
+                       }
+               }
        }
 }