N
Nikola Skoric
Hello,
This is the first time I try to use [OptionalField] thingy. I think I
use it in a proper way. But, I have following code:
using System;
using System.Collections;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters;
using System.Runtime.Serialization.Formatters.Binary;
namespace LanguageSystem {
[...]
[Serializable]
public class LangLanguage {
public enum Orient {LeftToRight, RightToLeft};
public string Name;
public ArrayList alphabet;
public Orient orientation;
[OptionalField]
public int wordNumber;
And it produces following error:
C:\[...]\LangLanguage.cs(19): The type or namespace name
'OptionalField' could not be found (are you missing a using directive or
an assembly reference?)
What could possibly be the problem?
This is the first time I try to use [OptionalField] thingy. I think I
use it in a proper way. But, I have following code:
using System;
using System.Collections;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters;
using System.Runtime.Serialization.Formatters.Binary;
namespace LanguageSystem {
[...]
[Serializable]
public class LangLanguage {
public enum Orient {LeftToRight, RightToLeft};
public string Name;
public ArrayList alphabet;
public Orient orientation;
[OptionalField]
public int wordNumber;
And it produces following error:
C:\[...]\LangLanguage.cs(19): The type or namespace name
'OptionalField' could not be found (are you missing a using directive or
an assembly reference?)
What could possibly be the problem?