YAFLogo

bathong
  • bathong
  • 53% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
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

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
12 years ago
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
12 years ago
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
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
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