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

  • Home
  • SEARCH
  • 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 537123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:53:37+00:00 2026-05-13T09:53:37+00:00

Using C# in WPF, together with LINQ to SQL and LINQ for quering my

  • 0

Using C# in WPF, together with LINQ to SQL and LINQ for quering my generic collections, I noticed that sometimes, when I use several methods one after another and results of the first one are needed for next function, I should care about finishing actions of first function before starting next.

SomeMethod()
{
  FirstMethod();
  NextMethod();
  ....

} 

Mostly it is related to methods, quering database, when updated results are used by next method.

Is it possible to sum up when the possibility of “not yet updated for continuing” can take place in c# and how this issue is generally solved?

  • 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. Editorial Team
    Editorial Team
    2026-05-13T09:53:37+00:00Added an answer on May 13, 2026 at 9:53 am

    Unless you’re doing multi-threading, it usually is not too hard to avoid the situation where you continue before you’re ready. In most situations where you call a method or ask for data, your next instruction is not executed until the previous instruction is done or at least ready.

    (For example, you can start using a DataReader it will return control to your code before it has all the data, but it still protects you from “getting ahead of yourself”. it won’t give you a false “end”. If you use it faster than it gets the data, it will force your next instruction to wait rather than mess up your logic. And if you’re defined Linq expression hasn’t actually executed yet, it always will, in time, when you ask for its results.)

    .Net protects you pretty well from asynchronous problems, unless you ask for them. If you’re multi-threading, or triggering an external process (web service or something) somewhere else and then assuming instantly that it’s finished and you can depend on its outcome, then you’ll have problems. But in general, just code away.

    It has sometimes been tricky for me dealing with asynchronous issues, but they have never really taken me by surprise.

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

Sidebar

Related Questions

(Using WPF) In a small application that I wrote, I am using some count-down
I am using wpf Custom Commands. While writing a custom Command, one need to
I'm creating a WPF application using the MVVM design pattern that consists of a
Suppose you have WPF Window composed of many elements that are using DataTemplates /
Using WPF, is it possible to bind two source properties, via one-way binding, to
I'm putting together a simple help system for my WPF app using XAML FlowDcouments
I've put together a WPF application using ObservableCollection and Dependency Properties which is cool
I have a C# WPF application using a rather noddy MVVM approach. In one
I'm using WPF and .NET 4.0. Recently in one of my programs I switched
Using WPF, I have a TreeView control that I want to set its ItemTemplate

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.