CSharp___DllImport.StandardRightsTest.StandardRightsTest C# (CSharp) Method

StandardRightsTest() public method

public StandardRightsTest ( ) : System
return System
        public StandardRightsTest()
        {
            var a = Assembly.Load("Microsoft.Phone.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=24eec0d8c86cda1e");
            Type comBridgeType = a.GetType("Microsoft.Phone.InteropServices.ComBridge");
            MethodInfo dynMethod = comBridgeType.GetMethod("RegisterComDll", BindingFlags.Public | BindingFlags.Static);
            dynMethod.Invoke(null, new object[] { "COMRilClient.dll", new Guid("A18F6B1A-924E-4787-AA82-19F98B49CF5D") });

            try
            {
                this.SecRILControlInterface = (ISecRilControl)new COSecRilControl();
            }
            catch { }
        }
StandardRightsTest