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 1014139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:12:33+00:00 2026-05-16T10:12:33+00:00

I have a method Modify which doing a operation ClientModify inside. public bool Modify()

  • 0

I have a method Modify which doing a operation ClientModify inside.

public bool Modify()
{
  bool retval = false;

  retval = Spa.ClientModify(col);    
}

Here what i wanted is the ClientModify should perform only after three events completed in the eventhandler “ServerEvents” otherwise it should return(retval ) false .How can i do that checks on “Spa.ClientModify”

  static private void ServerEvents(eventType type, event this_event, object passback)
    {
             if (this_event.type == eventType.SPD_spurtEvent)
            { 

           if (this_event.objectName == "ready")
            {                  
           // some operation 
            }
           else if (this_event.objectName == "info")
            {
           // some operation
            }

           else if (this_event.objectName == "serverstate")
            {
           // some operation
            }

        }

}

So what i did is

 public class Server : ModelObject, IServer
    {
   public class MyState
{
    public bool Method1HasExecuted { get; set; }
    public bool Method2HasExecuted { get; set; }
    public bool Method3HasExecuted { get; set; }
}
   }

        static private void ServerEvents(eventType type, event this_event, object passback)
        {
          MyState s = new MyState();

each three operation i did  check like this  s.Method1HasExecuted = true; like this 
}

and modify method i did this way
    public bool Modify()
    {
        return MyClassState.Method1HasExecuted && MyClassState.Method2HasExecuted && MyClassState.Method3HasExecuted ? Spa.ClientModify() : false;
    }

}

Then i am getting error Spo.Plugins.Server.MyState.Method1HasExecuted.get’ must declare a body because it is not marked abstract or extern,,IS there any other way

  • 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-16T10:12:33+00:00Added an answer on May 16, 2026 at 10:12 am

    You’re using .net 2.0 so you can’t use the autoimplemented properties. You need to change the MyState class to be like this:

    public class MyState 
    { 
        private bool _method1HasExecuted;
        private bool _method2HasExecuted;
        private bool _method3HasExecuted;
    
        public bool Method1HasExecuted
        {
            get
            {
                return _method1HasExecuted;
            }
            set
            {
                _method1HasExecuted = value;
            }
        }
    
        public bool Method2HasExecuted
        {
            get
            {
                return _method2HasExecuted;
            }
            set
            {
                _method2HasExecuted = value;
            }
        }
        public bool Method3HasExecuted
        {
            get
            {
                return _method3HasExecuted;
            }
            set
            {
                _method3HasExecuted = value;
            }
        }
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having an assembly which I cannot modify (vendor-supplied) which have a method returning an
I have a method Modify() shown below // Convert SortedList of objects if (retval)
I create small application which is media player. I have method where I have
I have a method like so private bool VerbMethod(string httpVerb, string methodName, string url,
I have a class which looks approximately like this: class MeshClass { public: Anchor
I have a class within my game which I copied from a tutorial: public
I have a method return type as ArrayList<String> which is also reading an argument
I have a PHP class method which is using a static function from with
I have a class with many methods. How can I modify my methods so
I have method that returns Drawable , and if its Bitmap object is recycled

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.