-
-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #368 from guizix/PortTypeOverride
Ability to override ValueType of a Port
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
/// <summary> Overrides the ValueType of the Port, to have a ValueType different from the type of its serializable field </summary> | ||
/// <remarks> Especially useful in Dynamic Port Lists to create Value-Port Pairs with different type. </remarks> | ||
[AttributeUsage(AttributeTargets.Field)] | ||
public class PortTypeOverrideAttribute : Attribute { | ||
public Type type; | ||
/// <summary> Overrides the ValueType of the Port </summary> | ||
/// <param name="type">ValueType of the Port</param> | ||
public PortTypeOverrideAttribute(Type type) { | ||
this.type = type; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters