Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/NRefactory.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Grunwald <daniel@danielgrunwald.de>2014-08-29 01:22:33 +0400
committerDaniel Grunwald <daniel@danielgrunwald.de>2014-08-29 01:22:45 +0400
commit9429712ebd1eaaa0c4ffbbf1458c2cceea04b6db (patch)
treeb8144f788121337bfdee055f6d43267c800458a0 /ICSharpCode.NRefactory.Cecil
parentff0393ce92e1adf0365a357cbf9eb9c9a20bf845 (diff)
Merge changes from SharpDevelop to NRefactory
Diffstat (limited to 'ICSharpCode.NRefactory.Cecil')
-rw-r--r--ICSharpCode.NRefactory.Cecil/CecilLoader.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/ICSharpCode.NRefactory.Cecil/CecilLoader.cs b/ICSharpCode.NRefactory.Cecil/CecilLoader.cs
index b8c4747f..29850ed3 100644
--- a/ICSharpCode.NRefactory.Cecil/CecilLoader.cs
+++ b/ICSharpCode.NRefactory.Cecil/CecilLoader.cs
@@ -825,7 +825,13 @@ namespace ICSharpCode.NRefactory.TypeSystem
void AddSecurityAttributes(SecurityDeclaration secDecl, IList<IUnresolvedAttribute> targetCollection)
{
- var blobSecDecl = new UnresolvedSecurityDeclarationBlob((int)secDecl.Action, secDecl.GetBlob());
+ byte[] blob;
+ try {
+ blob = secDecl.GetBlob();
+ } catch (NotSupportedException) {
+ return; // https://github.com/icsharpcode/SharpDevelop/issues/284
+ }
+ var blobSecDecl = new UnresolvedSecurityDeclarationBlob((int)secDecl.Action, blob);
targetCollection.AddRange(blobSecDecl.UnresolvedAttributes);
}
#endregion