Skip to content

How I made ChatGPT to write a working method in NET C to disable enabled ethernet cards

FurkanGozukara edited this page Oct 27, 2025 · 1 revision

How I made ChatGPT to write a working method in .NET C# to disable enabled ethernet cards

How I made ChatGPT to write a working method in .NET C# to disable enabled ethernet cards

image Hits Patreon BuyMeACoffee Furkan Gözükara Medium Codio Furkan Gözükara Medium

YouTube Channel Furkan Gözükara LinkedIn Udemy Twitter Follow Furkan Gözükara

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.

Clone this wiki locally