© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
6 replies
IceTrooper 🧊

Convert code to utility or extension method

Is it possible to simplifing this piece of code with some static utility or extension method?
cachedDisplayInitialPinCodeSequence
    .SetAutoKill(false)
    .OnKill(() => cachedDisplayInitialPinCodeSequence = null);

cachedShowCorrectValidationStatusSequence
    .SetAutoKill(false)
    .OnKill(() => cachedShowCorrectValidationStatusSequence = null);
cachedDisplayInitialPinCodeSequence
    .SetAutoKill(false)
    .OnKill(() => cachedDisplayInitialPinCodeSequence = null);

cachedShowCorrectValidationStatusSequence
    .SetAutoKill(false)
    .OnKill(() => cachedShowCorrectValidationStatusSequence = null);
unknown.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Lambda or extension method reference [Answered]
C#CC# / help
4y ago
❔ convert webclient code to httpclient code
C#CC# / help
4y ago
✅ convert synchronous code to async?
C#CC# / help
12mo ago
❔ Encapsulation with Extension Method
C#CC# / help
4y ago