bathong
  • Posts: 5
  • Joined: 24/04/2011
I build YAF by VS 2008 (.net 3.5), i got errors.

File YAF.Types.Interfaces.IWriteValue.cs

public interface IWriteValue<in T>
  {
    #region Public Methods
.....

Invalid token 'in' in class, struct, or interface member declaration.


File YAF.Types.Interfaces.IReadValue.cs

public interface IReadValue<out T>
  {
    /// <summary>
    /// Get a value.
....

Invalid token 'out' in class, struct, or interface member declaration.

I tried to build it 2day ago but not successful 😞 , Can you help me ? thanks a lot of.





Sponsor
logan
  • Posts: 309
  • Joined: 15/03/2008
You will need to get vs 2010 or Express(Free Version) http://www.microsoft.com/express/Web/  
test
Jaben
  • Posts: 2551
  • Joined: 09/10/2004
You can remove the covariance and contravariance specifications... basically, remove "in and out" for the generic type specification.
bathong
  • Posts: 5
  • Joined: 24/04/2011
Quote:

You will need to get vs 2010 or Express(Free Version) http://www.microsoft.com/express/Web/  

.

Quote:

You can remove the covariance and contravariance specifications... basically, remove "in and out" for the generic type specification.

.

Thanks you, I built it by VS 2010. :-d

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved