public VisibilityKind createVisibilityKindFromString(EDataType eDataType, String initialValue) { VisibilityKind result = VisibilityKind.get(initialValue); if (result == null) { throw new ArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.name + "'"); } return(result); }
public static VisibilityKind getByName(string name) { for (int i = 0; i < VALUES_ARRAY.Length; ++i) { VisibilityKind result = VALUES_ARRAY[i]; if (result.getName() == name) { return(result); } } return(null); }
public static VisibilityKind get(string literal) { for (int i = 0; i < VALUES_ARRAY.Length; ++i) { VisibilityKind result = VALUES_ARRAY[i]; if (result.ToString() == literal) { return(result); } } return(null); }