public static Creed Parse(string stringField) { String[] words; Creed creed = new Creed(); words = stringField.Split('~'); creed.Type = words[0]; creed.IDNumber = Int32.Parse(words[1]); creed.CreedText = words[2]; return(creed); }
public static Document Parse(String fileName, bool answers, bool proofs) { string[] words; Document document = new Document(); words = fileName.Split('~'); document.Type = words[0]; switch (words[0].ToUpper()) { case "CONFESSION": document = Confession.Parse(fileName, proofs); break; case "CATECHISM": document = Catechism.Parse(fileName, answers, proofs); break; case "CREED": document = Creed.Parse(fileName); break; default: ProcessError(String.Format("{0} is an invalid " + "Document type value for the Document " + "class Parse method", words[0])); break; } return(document); }
public void Copy(Creed sourceCreed) { this.CreedText = sourceCreed.CreedText; }
public Creed(Creed sourceCreed) { this.Copy(sourceCreed); }