bathong
  •  bathong
  • 53% (Neutral)
  • YAF Forumling Topic Starter
2011-04-23T23:16:18Z
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
  •  logan
  • 100% (Exalted)
  • YAF Leader
2011-04-24T00:37:27Z
You will need to get vs 2010 or Express(Free Version) http://www.microsoft.com/express/Web/  
test
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2011-04-24T19:02:09Z
You can remove the covariance and contravariance specifications... basically, remove "in and out" for the generic type specification.
bathong
  •  bathong
  • 53% (Neutral)
  • YAF Forumling Topic Starter
2011-04-27T23:08:15Z
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