添加一些显式运算

This commit is contained in:
2025-11-10 09:34:01 +08:00
parent 5f5fe7246d
commit b32f817315
4 changed files with 46 additions and 4 deletions
+12
View File
@@ -35,5 +35,17 @@ namespace XericUI.Core.Vessel
this.target0 = target0;
this.target1 = target1;
}
public static implicit operator T0(ObjectVessel<T0, T1> value)
{
return (T0)value.target0;
}
public static implicit operator T1(ObjectVessel<T0, T1> value)
{
return (T1)value.target1;
}
}
}