Skip to content

Instantly share code, notes, and snippets.

@mikesouza
Created September 5, 2011 19:07
Show Gist options
  • Save mikesouza/1195689 to your computer and use it in GitHub Desktop.
Save mikesouza/1195689 to your computer and use it in GitHub Desktop.
The Redundant Method
/// <summary>
/// Returns an array of the names in the specified enumeration.
/// </summary>
/// <param name="pEnumerationType">The enumeration to retrieve the names
/// from.</param>
/// <returns>Returns an array of the names in the enumeration.</returns>
private static string[] GetNames(Type pEnumerationType)
{
// TODO: Move this function to the EnumUtil class in the
// Managers.Utilities project and make it public.
return Enum.GetNames(pEnumerationType);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment