Skip to content

Instantly share code, notes, and snippets.

@Pasquina
Created March 25, 2018 20:31
Show Gist options
  • Save Pasquina/4413b55fad5eb9c0a67c220473f69981 to your computer and use it in GitHub Desktop.
Save Pasquina/4413b55fad5eb9c0a67c220473f69981 to your computer and use it in GitHub Desktop.
LiveBindings Demo Type Aliases
{ These Type Aliases accomplish two things:
1. They eliminate the need to key the cumbersome generic notation every time the type is used
2. They provide meaningful names in place of confusing names used by Live Bindings }
CorpObjectBSWrapper = TObjectBindSourceAdapter<TCorp>; // the corporate object wrapper
BranchListBSWrapper = TListBindSourceAdapter<TBranch>; // the branch object list wrapper
EmployeeListBSWrapper = TListBindSourceAdapter<TEmployee>; // the employee object list wrapper
@Pasquina
Copy link
Author

These Type Aliases are intended to both clarify the objects used by LiveBindings and encapsulate the generic types into less cumbersome name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment