예제 #1
0
        public TransformBindable(Bindable <TValue> targetBindable, InterpolationFunc <TValue> interpolationFunc)
        {
            this.targetBindable    = targetBindable;
            this.interpolationFunc = interpolationFunc ?? Interpolation <TValue> .ValueAt;

            TargetMember = $"{targetBindable.GetHashCode()}.Value";
        }
예제 #2
0
        public TransformBindable(Bindable <TValue> targetBindable)
        {
            this.targetBindable = targetBindable;
            interpolationFunc   = Interpolation.ValueAt;

            TargetMember = $"{targetBindable.GetHashCode()}.Value";
        }
예제 #3
0
        public TransformBindable(Bindable <TValue> targetBindable)
        {
            this.targetBindable = targetBindable;

            // Lambda expression is used so that the delegate is cached (see: https://github.com/dotnet/roslyn/issues/5835)
            interpolationFunc = (double d, TValue value, TValue tValue, double time, double endTime, in TEasing type)
                                => Interpolation.ValueAt(d, value, tValue, time, endTime, in type);

            TargetMember = $"{targetBindable.GetHashCode()}.Value";
        }
예제 #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Id?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Free.GetHashCode();
         hashCode = (hashCode * 397) ^ Bindable.GetHashCode();
         return(hashCode);
     }
 }
예제 #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Id?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Bindable.GetHashCode();
         hashCode = (hashCode * 397) ^ (DashboardClient?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ PlanUpdateable.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ExternalName?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (ExternalID?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Bindable.GetHashCode();
         hashCode = (hashCode * 397) ^ Free.GetHashCode();
         hashCode = (hashCode * 397) ^ (ClusterServiceBrokerName?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
예제 #7
0
 public override int GetHashCode() => Bindable.GetHashCode();
        public TransformBindable(Bindable <TValue> targetBindable)
        {
            this.targetBindable = targetBindable;

            TargetMember = $"{targetBindable.GetHashCode()}.Value";
        }
예제 #9
0
 /// <summary>
 ///    <para>[To be supplied.]</para>
 /// </summary>
 public override int GetHashCode()
 {
     return(Bindable.GetHashCode());
 }