CesiumLanguageWriter.Advanced.CesiumFormattingHelper.ShadowModeToString C# (CSharp) Method

ShadowModeToString() public static method

Converts a CesiumShadowMode to the corresponding string in a CZML stream.
public static ShadowModeToString ( CesiumShadowMode value ) : string
value CesiumShadowMode The value to convert.
return string
        public static string ShadowModeToString(CesiumShadowMode value)
        {
            switch (value)
            {
                case CesiumShadowMode.Disabled:
                    return "DISABLED";
                case CesiumShadowMode.Enabled:
                    return "ENABLED";
                case CesiumShadowMode.CastOnly:
                    return "CAST_ONLY";
                case CesiumShadowMode.ReceiveOnly:
                    return "RECEIVE_ONLY";
                default:
                    throw new ArgumentException(CesiumLocalization.UnknownEnumerationValue, "value");
            }
        }