Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 125135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:06:39+00:00 2026-05-11T05:06:39+00:00

I am coding in C# 1.1. I want a way to find out all

  • 0

I am coding in C# 1.1.

I want a way to find out all the ‘If’ clause without the its ‘else’ clause. Is there any easy way?

I am asking this question because I got a project source file from my client which has many IF clause that doesnt have a ELSE clause. This is causing a lot of bugs. So, I want to scan my source file to see if there is any IF clause that doesn’t have a ELSE clause.

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:06:40+00:00Added an answer on May 11, 2026 at 5:06 am

    I think you’ll probably need to use a stack because an if could be inside another if. Every time you find an if, push onto the stack. Now look for the end of the phrase. That means either a ; or matching curly braces. After that, check for else. Pop the stack.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is what i am doing in coding i want to create controls on
Well, may be this question is silly, but I couldn't find a way (except
I'm sorry for asking this sort of questions, but I really couldn't find the
I am just starting with coding some JSP, which I find isn't all that
I'm getting out off the closet on this! I don't understand SBT. There, I
I want to start coding in Python or Ruby. Since I own a Lego
I want to use the cpplint.py script to get coding style errors on the
I Want to know which one is preferred while coding to use Static Methods
i want to ask a question about how to do paging in ASP.net coding
I am coding a messaging system and I don't want to have short IDs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.