How I made ChatGPT to write a working method in .NET C# to disable enabled ethernet cards #311
FurkanGozukara
announced in
Tutorials
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How I made ChatGPT to write a working method in .NET C# to disable enabled ethernet cards
Full tutorial: https://www.youtube.com/watch?v=Bq9KUc4NnwE
This was a request from one of my students. It took me few try to get it work.
#dotnet #csharp #chatgpt
thumbnail: freepik - macrovector
Video Transcription
00:00:00 One of my students asked me to how he can disable his ethernet card with C# code.
00:00:05 So I have asked it to ChatGPT as you can see here. It has provided me an answer but it wasn't
00:00:12 working. So I said that and ni doesn't have disable method. So it generated another
00:00:19 answer for me as can be seen here and then I have said that what is the using for
00:00:26 INetworkLinkLayerInfo? It was missing in the references. Then it has given me an answer but it
00:00:34 was still missing in System.Net.NetworkInformation. So I asked again and finally the ChatGPT has
00:00:42 fixed its all errors and provided the correct answer as can be seen here. This is how you can
00:00:50 utilize ChatGPT to improve the output of the code that it provides. Thank you for watching.
Beta Was this translation helpful? Give feedback.
All reactions