step 1: unistall all sql server intance
step 2: open PowerShell (Admin)
Tools Needed:
- PowerShell (Admin)
- Command Prompt (Admin)
- SQL Server Setup.exe (Official Microsoft)
step4 : restart computer
step 5: install sql
KANSIRIS - DO IT
step 1: unistall all sql server intance
step 2: open PowerShell (Admin)
Tools Needed:
The ternary operator (?:) in C# is a concise shorthand for an if-else statement
condition ? expression_if_true : expression_if_false;
true or false .if-else block to assign a value, you can do it in a single line:int time = 20;
// Traditional if-else
string result;
if (time < 18) {
result = "Good day.";
} else {
result = "Good evening.";
}
// Equivalent ternary operator
string shortResult = (time < 18) ? "Good day." : "Good evening.";
Console.WriteLine(shortResult); // Output: Good evening.
else if), though this can reduce readability if overused .int score = 85;
string grade = score >= 90 ? "A" : (score >= 80 ? "B" : "C");
// Result: "B"
var array = new int[] { 1, 2, 3 };
ref int target = ref (condition ? ref array[0] : ref array[1]);
string message = IsUserLogged() ? GetWelcomeMessage() : GetLoginPrompt();
if-else or switch is often easier to read and debug .