YAFLogo

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