Skip to content

Commit

Permalink
Update setter methods names
Browse files Browse the repository at this point in the history
  • Loading branch information
FreePhoenix888 committed Mar 17, 2022
1 parent dd44229 commit ce09e68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions csharp/Platform.Data/ILinksExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ public static TLinkAddress Create<TLinkAddress>(this ILinks<TLinkAddress, LinksC
{
var constants = links.Constants;
Setter<TLinkAddress, TLinkAddress> setter = new Setter<TLinkAddress, TLinkAddress>(constants.Continue, constants.Break, constants.Null);
links.Create(substitution, setter.SetFirstFromSecondListAndReturnTrue);
links.Create(substitution, setter.SetFirstFromNonNullSecondListAndReturnTrue);
return setter.Result;
}

public static TLinkAddress Update<TLinkAddress>(this ILinks<TLinkAddress, LinksConstants<TLinkAddress>> links, IList<TLinkAddress>? restriction, IList<TLinkAddress>? substitution)
{
var constants = links.Constants;
Setter<TLinkAddress, TLinkAddress> setter = new(constants.Continue, constants.Break, constants.Null);
links.Update(restriction, substitution, setter.SetFirstFromSecondListAndReturnTrue);
links.Update(restriction, substitution, setter.SetFirstFromNonNullSecondListAndReturnTrue);
return setter.Result;
}

Expand All @@ -41,7 +41,7 @@ public static TLinkAddress Delete<TLinkAddress>(this ILinks<TLinkAddress, LinksC
{
var constants = links.Constants;
Setter<TLinkAddress, TLinkAddress> setter = new Setter<TLinkAddress, TLinkAddress>(constants.Continue, constants.Break, constants.Null);
links.Delete(restriction, setter.SetFirstFromFirstListAndReturnTrue);
links.Delete(restriction, setter.SetFirstFromNonNullFirstListAndReturnTrue);
return setter.Result;
}

Expand Down

0 comments on commit ce09e68

Please sign in to comment.