SIL.FieldWorks.TE.TeEditorialChecks.DummyListItem.GetPropValue C# (CSharp) Method

GetPropValue() public method

Returns the value for the specified property. I would use reflection but that takes more overhead since this will be used in sorting.
public GetPropValue ( string propName ) : object
propName string
return object
		public object GetPropValue(string propName)
		{
			switch (propName)
			{
				case "EnumProp": return EnumProp;
				case "DateProp": return DateProp;
				case "IntProp": return IntProp;
				case "StrProp": return StrProp;
			}

			return null;
		}
	}
DummyListItem