IKVM.Internal.CompilerClassLoader.RemapperTypeWrapper.RemappedMethodBaseWrapper.AddDeclaredExceptions C# (CSharp) Method

AddDeclaredExceptions() static private method

static private AddDeclaredExceptions ( IKVM.Reflection.MethodBase mb, IKVM throws ) : void
mb IKVM.Reflection.MethodBase
throws IKVM
return void
                internal static void AddDeclaredExceptions(MethodBase mb, IKVM.Internal.MapXml.Throws[] throws)
                {
                    if(throws != null)
                    {
                        string[] exceptions = new string[throws.Length];
                        for(int i = 0; i < exceptions.Length; i++)
                        {
                            exceptions[i] = throws[i].Class;
                        }
                        AttributeHelper.SetThrowsAttribute(mb, exceptions);
                    }
                }
CompilerClassLoader.RemapperTypeWrapper.RemappedMethodBaseWrapper