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

The Archive Base Latest Questions

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

Assume my WCF interface declared like that: [ServiceContract] public interface IManagementConsole { [OperationContract] ConsoleData

  • 0

Assume my WCF interface declared like that:

[ServiceContract]
public interface IManagementConsole
{
    [OperationContract]
    ConsoleData GetData(int strategyId);

[DataContract]
public class ConsoleData
{
    .....
    [DataMember]
    public int[] GetConnectionsStats { get; set; }
}

In my program I just assign value:

....
ConsoleData data = new ConsoleData();
....
data.GetConnectionsStats = Program.GetConnectionsStats();

The question is – will that work? Array is actually a pointer? I guess probably pointer will be passed over WCF instead of passing array data?

  • 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-27T09:27:14+00:00Added an answer on May 27, 2026 at 9:27 am

    There is nothing preventing you from passing an array from the client to the server and from the server to the client. Remember that before the actual sending and receiving occurs, data is serialized in order to be transported over the wire. So, no pointers. The data is serialized at the sender’s side and deserialized back on the receiver’s side.

    In the example you have shown, there is a service operation which returns an object containing an array of integers. When the client invokes the GetData method, the server will serialize the ConsoleData contract using the configured binding and send it over the wire.

    On the client side, a copy of this data will be reconstructed by deserializing what is received.

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

Sidebar

Related Questions

assume I have a hosted wcf service in a console application like this: public
Assume that I have Silverlight app doing a call to a WCF service: void
lets assume that we have two operation contracts defined on wcf service, sync and
Assume you are doing something like the following List<string> myitems = new List<string> {
Assume the following class: public class MyEnum: IEnumerator { private List<SomeObject> _myList = new
Assume that we have N erlang nodes, running same application. I want to share
I have a wcf restful service with a operation contract that contains two values
I have a simple Silverlight application that use WCF RIA Services to communicate with
I can understand that WCF is in general better than Remoting, but the two
I'd like to host a WCF web service in IIS. The service should keep

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.