예제 #1
0
 public void Word(string newWordString)
 {
     //set word from string
     try {
         MemoryWord newWord = new MemoryWord(newWordString);
         _Value = newWord;
     } catch (ArgumentException ex) {
         throw ex;
     } catch (Exception exAll) {
         throw new Exception("Unknown Exception");
     }
 }
예제 #2
0
 public void Word(MemoryWord newWord)
 {
     // sets the word
     _Value = newWord;
 }
예제 #3
0
 public MemoryLocation(string newWordString)
 {
     // create a new word from the given word string.
     _Value = new MemoryWord(newWordString);
 }