|
-
July 20th, 2005, 08:19 AM
#1
public variable not accessible, why??
i've a public variable declared inside the class (ArrayList arr) and when i try to access it within the methods of the class (like Parser) it gives me an error, why?? like if i've declared it public i shud be able to access it, i've done this before too. Also how wud i access this variable in any other class, do i need to create accessor methods in this class for that. Below is the structure of the class:
Code:
using System;
using System.Collections;
using System.Text.RegularExpressions;
namespace HL7Convert
{
class HL7Convert
{
public ArrayList arr = new ArrayList();
public static String Parser (String fileNum, String fileName)
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|