© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
9 replies
Tueem

Unsure on how to structure using OOP

Hey,
I have written the following abstract class to abstract away different communication drivers like serial or udp/tcp and there is already a feature which sends ping messages and checks for a response to see if there is something on the other end of the port. But I think there is a better way to do this using more than one class. I also want to add a port connected check for when a usb gets yanked for example. How would you guys structure that?

I'm also open for criticism about my already written code!

This is the code https://pastebin.com/iQBTHVjG
Pastebin
using CommandWingDriver.Event;using CommandWingDriver.IO.Implementa...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
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

❔ How to structure DTOs
C#CC# / help
4y ago
Unsure on this error
C#CC# / help
3w ago
How to make this more oop firendly?
C#CC# / help
4w ago
❔ Need advice on how to structure a repository
C#CC# / help
3y ago