DartSharp.Context.GetValue C# (CSharp) Method

GetValue() public method

public GetValue ( string name ) : object
name string
return object
        public object GetValue(string name)
        {
            if (!this.values.ContainsKey(name))
                if (this.parent != null)
                    return this.parent.GetValue(name);
                else
                    return null;

            return this.values[name];
        }

Usage Example

コード例 #1
0
ファイル: TypeUtilities.cs プロジェクト: ajlopez/DartSharp
        public static Type GetType(Context context, string name)
        {
            object obj = context.GetValue(name);

            if (obj != null && obj is Type)
                return (Type)obj;

            return GetType(name);
        }
All Usage Examples Of DartSharp.Context::GetValue