Click here to Skip to main content
15,896,547 members
Home / Discussions / C#
   

C#

 
Question<<specificVersion>>'True'<<specificVersion/>> is not satisfying Pin
AstroBod42714-Jun-12 23:05
AstroBod42714-Jun-12 23:05 
AnswerRe: >'True'> is not satisfying Pin
VJ Reddy14-Jun-12 23:29
VJ Reddy14-Jun-12 23:29 
GeneralRe: >'True'> is not satisfying Pin
AstroBod42714-Jun-12 23:53
AstroBod42714-Jun-12 23:53 
AnswerRe: >'True'> is not satisfying Pin
Eddy Vluggen15-Jun-12 1:52
professionalEddy Vluggen15-Jun-12 1:52 
GeneralRe: >'True'> is not satisfying Pin
AstroBod42715-Jun-12 2:04
AstroBod42715-Jun-12 2:04 
GeneralRe: >'True'> is not satisfying Pin
Eddy Vluggen15-Jun-12 2:30
professionalEddy Vluggen15-Jun-12 2:30 
GeneralRe: >'True'> is not satisfying Pin
AstroBod42715-Jun-12 3:17
AstroBod42715-Jun-12 3:17 
GeneralRe: >'True'> is not satisfying Pin
Eddy Vluggen15-Jun-12 3:21
professionalEddy Vluggen15-Jun-12 3:21 
GeneralRe: >'True'> is not satisfying Pin
AstroBod42715-Jun-12 4:13
AstroBod42715-Jun-12 4:13 
GeneralRe: >'True'> is not satisfying Pin
Eddy Vluggen15-Jun-12 5:14
professionalEddy Vluggen15-Jun-12 5:14 
AnswerRe: >'True'> is not satisfying Pin
jschell15-Jun-12 10:22
jschell15-Jun-12 10:22 
GeneralRe: >'True'> is not satisfying Pin
GrooverFromHolland15-Jun-12 12:30
GrooverFromHolland15-Jun-12 12:30 
GeneralRe: >'True'> is not satisfying Pin
Bernhard Hiller17-Jun-12 22:09
Bernhard Hiller17-Jun-12 22:09 
GeneralRe: >'True'> is not satisfying Pin
AstroBod42726-Jun-12 2:00
AstroBod42726-Jun-12 2:00 
GeneralRe: >'True'> is not satisfying Pin
AstroBod42726-Jun-12 1:58
AstroBod42726-Jun-12 1:58 
QuestionHow to implement error tracing for windows in c# application Pin
Member 385772214-Jun-12 22:34
Member 385772214-Jun-12 22:34 
AnswerRe: How to implement error tracing for windows in c# application Pin
Abhinav S15-Jun-12 20:28
Abhinav S15-Jun-12 20:28 
QuestionConsole Application based on delegates Pin
praveengb14-Jun-12 20:15
praveengb14-Jun-12 20:15 
AnswerRe: Console Application based on delegates Pin
Sandeep Mewara14-Jun-12 20:42
mveSandeep Mewara14-Jun-12 20:42 
praveengb wrote:
Error      1      'Delegates.DelegateTest.RemoveSpaces(string)': not all code paths return a value

C#
//reomve spaces
            static string RemoveSpaces(string s)
            {
                  string temp="";
                  int i;
                  Console.WriteLine("Removing spaces.");
                  for(i=0;i<s.Length;i++)
                  {
                        if (s[i] != ' ')
                        {
                              temp = temp + s[i];
                              return temp;
                        }
                  }
            }

This method does not return anything if the if-case is never true. This leads to 'not every possible scenario' is returning a string as expected. Add a return statement after 'for' ends to correct it. If nothing else, return an empty string.


praveengb wrote:
Error      2      Cannot implicitly convert type 'int' to 'bool'

Your checking condition in for loop here:
for (j = 0; i = s.Length - 1; i--, j++) //Incorrect

It should be a boolean true-false condition. Try:
C#
i <= s.Length -1


QuestionC# Installer Pin
Zeyad Jalil14-Jun-12 19:42
professionalZeyad Jalil14-Jun-12 19:42 
AnswerRe: C# Installer Pin
Sandeep Mewara14-Jun-12 20:35
mveSandeep Mewara14-Jun-12 20:35 
GeneralRe: C# Installer Pin
Zeyad Jalil14-Jun-12 20:48
professionalZeyad Jalil14-Jun-12 20:48 
GeneralRe: C# Installer Pin
Sandeep Mewara14-Jun-12 20:54
mveSandeep Mewara14-Jun-12 20:54 
AnswerRe: C# Installer Pin
Dave Kreskowiak15-Jun-12 2:03
mveDave Kreskowiak15-Jun-12 2:03 
AnswerRe: C# Installer Pin
Abhinav S15-Jun-12 20:26
Abhinav S15-Jun-12 20:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.