mirror of
				https://github.com/esiur/esiur-dotnet.git
				synced 2025-11-04 01:11:35 +00:00 
			
		
		
		
	Token
This commit is contained in:
		@@ -97,6 +97,10 @@ namespace Esyur.Data
 | 
			
		||||
                        {
 | 
			
		||||
                            return Structure.FromStructure((Structure)value, destinationType);
 | 
			
		||||
                        }
 | 
			
		||||
                        else if (destinationType.IsEnum)
 | 
			
		||||
                        {
 | 
			
		||||
                            return Enum.ToObject(destinationType, value);
 | 
			
		||||
                        }
 | 
			
		||||
                        else
 | 
			
		||||
                        {
 | 
			
		||||
                            return Convert.ChangeType(value, destinationType);
 | 
			
		||||
 
 | 
			
		||||
@@ -134,6 +134,16 @@ namespace Esyur.Data
 | 
			
		||||
          //  return dic.Keys.ToArray();
 | 
			
		||||
        //}
 | 
			
		||||
        
 | 
			
		||||
        public Structure Add(string key, object value)
 | 
			
		||||
        {
 | 
			
		||||
            if (dic.ContainsKey(key))
 | 
			
		||||
                dic[key] = value;
 | 
			
		||||
            else
 | 
			
		||||
                dic.Add(key, value);
 | 
			
		||||
 | 
			
		||||
            return this;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public object this[string index]
 | 
			
		||||
        {
 | 
			
		||||
            get
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user