Add hash function to Gradient.
This commit is contained in:
		
							parent
							
								
									f8dea00021
								
							
						
					
					
						commit
						6ad11812e2
					
				@ -155,5 +155,14 @@ namespace Dashboard
 | 
			
		||||
        {
 | 
			
		||||
            _stops.RemoveAt(index);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public override int GetHashCode()
 | 
			
		||||
        {
 | 
			
		||||
            HashCode code = new HashCode();
 | 
			
		||||
            code.Add(Count);
 | 
			
		||||
            foreach (GradientStop item in this)
 | 
			
		||||
                code.Add(item.GetHashCode());
 | 
			
		||||
            return code.ToHashCode();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user