YAFLogo

bathong
  • bathong
  • 53% (Neutral)
  • YAF Forumling Topic Starter
13 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
logan
  • logan
  • 100% (Exalted)
  • YAF Leader
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
13 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
13 years ago
.

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

Users browsing this topic