chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
namespace Lib.@string.list;
|
||||
|
||||
[Guid("4c496e8d-2a83-4493-a7a4-fdad29ef3f7d")]
|
||||
internal sealed class StringLength : Instance<StringLength>
|
||||
{
|
||||
[Output(Guid = "{C2FA7C57-6A0C-4D33-A70D-5130F3D52798}")]
|
||||
public readonly Slot<int> Length = new();
|
||||
|
||||
public StringLength()
|
||||
{
|
||||
Length.UpdateAction += Update;
|
||||
}
|
||||
|
||||
private void Update(EvaluationContext context)
|
||||
{
|
||||
Length.Value = InputString.GetValue(context).Length;
|
||||
}
|
||||
|
||||
[Input(Guid = "{5794D63A-3EF7-42C5-B726-E814EA9093E3}")]
|
||||
public readonly InputSlot<string> InputString = new();
|
||||
}
|
||||
Reference in New Issue
Block a user