• /r/csharp
  • Currently in the process of learning C#, trying to get a good grasp on Classes. What is a key indicator telling you that you should make a Class? I’m having trouble knowing when I should make a new Class code file or not.

    My main issue is determining what my classes need to be and when I should create new ones. When exactly I need to use a class, ect. I know this is a very general question, sorry. submitted by /u/goingtocalifornia25 [link] [comments]

  • /r/csharp
  • How to program in C# – Beginner Course

    I’ve made a video course on C# for complete beginners. It will take you from installing the software to more advanced subjects such as using Interfaces and Generics. Check out the 15 videos HERE. Here are a list of subjects: Basics Variables If statements Switch statements For loops While loops Methods Arrays Classes Inheritance Enums […]

  • /r/powershell
  • Been a while, how can I combine this data to this format. I know its easy

    I can use [system.data.sql.SqlDataSourceEnumerator]::Instance.GetDataSources() to output list of all SQL server instances on network. the output of that is set to $test I want to have it read as ServerInstanceName ServerInstanceName ServerInstanceName Here are my below attempts PS R:> $Servers = $test | select -expand ServerName PS R:> $Servers Name Name Name Name Name Name […]

  • /r/powershell
  • New-ScheduledTaskTrigger fails when -RepetitionInterval parameter is used

    I’m trying to create a scheduled task that runs daily and repeats hourly for 16 hours. The line of code I’m having trouble with is: $trigger = New-ScheduledTaskTrigger -Daily -At 6:00 -RepetitionInterval (New-Timespan -Hours 1) -RepetitionDuration (New-Timespan -Hours 16) If the -RepetitionInterval parameter is present, I get this error message: New-ScheduledTaskTrigger : Parameter set cannot […]