internal static string ToSerializedValue(this DataLakeStoreAccountState value)
        {
            switch (value)
            {
            case DataLakeStoreAccountState.Active:
                return("Active");

            case DataLakeStoreAccountState.Suspended:
                return("Suspended");
            }
            return(null);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Convert an enum of type DataLakeStoreAccountState to a string.
 /// </summary>
 /// <param name='value'>
 /// The value to convert to a string.
 /// </param>
 /// <returns>
 /// The enum value as a string.
 /// </returns>
 internal static string DataLakeStoreAccountStateToString(DataLakeStoreAccountState value)
 {
     if (value == DataLakeStoreAccountState.Active)
     {
         return("active");
     }
     if (value == DataLakeStoreAccountState.Suspended)
     {
         return("suspended");
     }
     throw new ArgumentOutOfRangeException("value");
 }