Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 4.0 aka C# 2010 > C# 4.0 aka C# 2010 General Discussion
|
C# 4.0 aka C# 2010 General Discussion Discussions about the C# 4.0, C# 4, Visual C# 2010 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 4.0 aka C# 2010 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 25th, 2012, 05:25 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Default How do I do a get/post for an array in c#?

How do I do a get/post for an array in c#?
In C#, you get and set variables like this:
Code:
public int ID { get; set; }

How would one get and set an array in C#?
This will not work:
Code:
public uint [5] BIG_Hash {get; set;}
 
Old May 1st, 2014, 12:37 AM
Friend of Wrox
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

Like this

Code:
Public int[] MyIntegers { get; set; }





Similar Threads
Thread Thread Starter Forum Replies Last Post
Attach Document through Blog post (Create a Post). Ranjan Kumar BOOK: Workflow in SharePoint 2010: Real World Business Workflow Solutions 0 December 2nd, 2011 11:08 AM
Convering a String Array to an Integer array nkrust C# 9 November 17th, 2010 12:02 PM
I am have been trying to assign a c# array value to a javascript array ysfkay ASP.NET 3.5 Professionals 10 April 7th, 2010 07:46 AM
Go from 2d Array to 1d array without defining type OneQuestion General .NET 1 January 10th, 2008 11:13 AM
Passing php array values to javascript array gkrishna Pro PHP 0 November 6th, 2004 03:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.