using System; using System.Collections; using System.Text; namespace P4API { public class P4StringsResult : P4Result, IEnumerable { internal P4StringsResult() { } private string[] m_outputs; private string[] _Outputs { get { if (m_outputs == null) { m_outputs = (string[])StringOutputs.ToArray(typeof(string)); } return m_outputs; } } public string[] Strings { get { return _Outputs; } } public string this[int index] //indexer { get { return _Outputs[index]; } } #region IEnumerable Members IEnumerator IEnumerable.GetEnumerator() { return _Outputs.GetEnumerator(); } #endregion } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 5432 | Shawn Hladky | Refactoring step 2 -- rename source files | ||
#3 | 5431 | Shawn Hladky |
Refactoring... step 1. |
||
#2 | 5373 | Shawn Hladky | P4.Net: Still WIP, but some things starting to work | ||
#1 | 5349 | Shawn Hladky |
Initial check-in for the new API interface. Nothing works yet, but it should compile at least. |