Issue 26 in linqbridge: hasFlag is not supported

8 views
Skip to first unread message

linqb...@googlecode.com

unread,
Nov 29, 2011, 10:25:06 AM11/29/11
to linqbridg...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 26 by nguyenXH...@gmail.com: hasFlag is not supported
http://code.google.com/p/linqbridge/issues/detail?id=26

What steps will reproduce the problem?
1. Adding LinqBridge-1.2.cs
2. Compiling a project .net 2.0


What is the expected output? What do you see instead?
=> compilable but there is an error:

Error 10 'SharpCompress.Common.Rar.Headers.FileFlags' does not contain a
definition for 'HasFlag' and no extension method 'HasFlag' accepting a
first argument of type 'SharpCompress.Common.Rar.Headers.FileFlags' could
be found (are you missing a using directive or an assembly reference?)
C:\Users\xnguyen\Desktop\CompressionTest\SharpCompress\Archive\Rar\RarArchiveEntry.cs
58 48 CompressionTest


What version of the product are you using? On what operating system?
Windows

Thanks in advance.

linqb...@googlecode.com

unread,
Apr 16, 2012, 2:26:38 AM4/16/12
to linqbridg...@googlegroups.com
Updates:
Status: WontFix

Comment #1 on issue 26 by azizatif: hasFlag is not supported
http://code.google.com/p/linqbridge/issues/detail?id=26

System.Enum.HasFlag was introduced with .NET Framework 4.0 and is
implemented as a direct, not an extension, method on System.Enum. You can
implement it as an extension method your assemblies targeting .NET
Framework 2.0 as an extension method (using the ExtensionAttribute supplied
by LINQBridge).

http://msdn.microsoft.com/en-us/library/system.enum.hasflag.aspx

Reply all
Reply to author
Forward
0 new messages