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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:07:14+00:00 2026-06-06T08:07:14+00:00

I am making an application in silverlight 3.0 In that application i want to

  • 0

I am making an application in silverlight 3.0 In that application i want to implement a functionality like : i have to maintain collection of values. i am continuously adding values in that collection from one end and removing values from another end.Means suppose i want to maintain a collection of 3000 values. If i am adding one value in that collection, then one value should be removed so that i have only collection of 3000 values.I want to use “Circular queue” So is there any functionality in silverlight of circular queue? Or is there any efficient logic instead of circular queue? Please help me .Thanks in advance.

  • 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-06-06T08:07:15+00:00Added an answer on June 6, 2026 at 8:07 am

    You might want to use built-in class Queue and implement a wrapper around it:

    public class CircularQueue
    {
      private int totalItems;
      private Queue<object> queue = new Queue<object>();
    
      public CircularQueue(int maxCount)
      {
        this.totalItems = maxCount;
      }
    
      /// <summary>
      /// Get first object from queue.
      /// </summary>
      public object Dequeue()
      {
        // ToDo: You might want to check first if the queue is empty to avoid a InvalidOperationException
        object firstObject = this.queue.Dequeue();
        return firstObject;
      }
    
      public void EnQueue(object objectToPutIntoQueue)
      {
        if (this.queue.Count >= this.totalItems)
        {
          object unusedObject = this.queue.Dequeue();
    
          // ToDo: Cleanup the instance of ununsedObject.
        }
    
        this.queue.Enqueue(objectToPutIntoQueue);
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service (not RIA) that I access from Silverlight. The application
I have Silverlight application that retrieves data from the database through a WCF Service.
I am making an application in Silverlight 3.0. In that application i am using
I am making a Progressbar as part of my Silverlight application that is triggered
I have client apps that talk to my silverlight application and its web services.
I have an application in WP7 silverlight that needs to be launched after a
I am making an web application using silverlight 3.0 . In that application i
I have a Silverlight application that is interacting with a WCF service. This service
I have a Silverlight 4 Beta application where I'd like to use the SharePoint
I'm making application. I am using JQuery, that retrieves data from MySQL database using

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.