Microsoft.Xna.Framework.Graphics.EffectParameter.GetValueString C# (CSharp) Method

GetValueString() public method

public GetValueString ( ) : string
return string
		public string GetValueString ()
		{
            if (ParameterClass != EffectParameterClass.Object || ParameterType != EffectParameterType.String)
                throw new InvalidCastException();

		    return ((string[])Data)[0];
		}

Usage Example

Esempio n. 1
0
 /// <summary>
 /// Gets the value of the parameter as a String.
 /// </summary>
 /// <returns>
 /// The string value
 /// </returns>
 public string GetValueString()
 {
     return(_param.GetValueString());
 }