Click here to Skip to main content
15,881,709 members
Home / Discussions / C#
   

C#

 
GeneralRe: Spell checker in code Pin
Eddy Vluggen2-Nov-12 10:11
professionalEddy Vluggen2-Nov-12 10:11 
GeneralRe: Spell checker in code Pin
PozzaVecia2-Nov-12 11:22
PozzaVecia2-Nov-12 11:22 
AnswerRe: Spell checker in code Pin
Eddy Vluggen2-Nov-12 11:31
professionalEddy Vluggen2-Nov-12 11:31 
AnswerRe: Spell checker in code Pin
Clifford Nelson2-Nov-12 10:26
Clifford Nelson2-Nov-12 10:26 
GeneralRe: Spell checker in code Pin
PozzaVecia2-Nov-12 11:22
PozzaVecia2-Nov-12 11:22 
QuestionSource file with repetitive data Pin
C-P-User-32-Nov-12 6:02
C-P-User-32-Nov-12 6:02 
AnswerRe: Source file with repetitive data Pin
Richard MacCutchan2-Nov-12 6:29
mveRichard MacCutchan2-Nov-12 6:29 
GeneralRe: Source file with repetitive data Pin
C-P-User-35-Nov-12 8:00
C-P-User-35-Nov-12 8:00 
Richard MacCutchan wrote:
Put them in a static class of their own with static getters, and ensure they are part of the namespace of the main application.


I'm trying to get an idea of all this.

Tried the following, and the code in other files still can't see the names of these groups of data bytes; no matter if I declare them as public or static...

C#
using System;

namespace The_Same_Namespace_As_The_Other_Files
{
    public partial class Form1 : Form
    {
        public byte[] This_Does_Not_Work = new byte[] { 0x01, 0x02 };
    }



    static class Class1
    {
        static Class1();

        public byte[] The_Command_Set_01 = new byte[] {
                                                0x01, 0x01, 0x01, 0x01, 
                                                0x01, 0x01, 0x01, 0x01, 
                                                0x01, 0x01, 0x01 
                                                }
                                                ;



        static byte[] Just_A_Test_Set = new byte[] {
                                                0xFF, 0xFE, 0xFD, 0xFC, 
                                                0xFB, 0xFA, 0xF9, 0xF8, 
                                                0xF7, 0xF6, 0xF5 
                                                }
                                                ;



	
    }
}


What do I need to do to let my methods in other files see the group called The_Command_Set_01 which is in this file ?
GeneralRe: Source file with repetitive data Pin
Richard MacCutchan5-Nov-12 22:02
mveRichard MacCutchan5-Nov-12 22:02 
GeneralRe: Source file with repetitive data Pin
C-P-User-36-Nov-12 6:02
C-P-User-36-Nov-12 6:02 
GeneralRe: Source file with repetitive data Pin
Richard MacCutchan6-Nov-12 6:32
mveRichard MacCutchan6-Nov-12 6:32 
GeneralRe: Source file with repetitive data Pin
C-P-User-36-Nov-12 10:00
C-P-User-36-Nov-12 10:00 
SuggestionRe: Source file with repetitive data Pin
dybs4-Nov-12 17:13
dybs4-Nov-12 17:13 
GeneralRe: Source file with repetitive data Pin
C-P-User-35-Nov-12 4:50
C-P-User-35-Nov-12 4:50 
QuestionHow to get current background color info from a form Pin
MichCl2-Nov-12 5:02
MichCl2-Nov-12 5:02 
AnswerRe: How to get current background color info from a form Pin
Eddy Vluggen2-Nov-12 5:32
professionalEddy Vluggen2-Nov-12 5:32 
GeneralRe: How to get current background color info from a form Pin
MichCl2-Nov-12 7:53
MichCl2-Nov-12 7:53 
GeneralRe: How to get current background color info from a form Pin
Eddy Vluggen2-Nov-12 8:00
professionalEddy Vluggen2-Nov-12 8:00 
GeneralRe: How to get current background color info from a form Pin
MichCl2-Nov-12 8:06
MichCl2-Nov-12 8:06 
QuestionRe: How to get current background color info from a form Pin
Eddy Vluggen2-Nov-12 9:09
professionalEddy Vluggen2-Nov-12 9:09 
GeneralRe: How to get current background color info from a form Pin
Alan N2-Nov-12 10:00
Alan N2-Nov-12 10:00 
AnswerRe: How to get current background color info from a form Pin
Ravi Bhavnani2-Nov-12 9:34
professionalRavi Bhavnani2-Nov-12 9:34 
QuestionActive Directory UserPrincipal Extension not working Pin
rcgneo1-Nov-12 22:44
rcgneo1-Nov-12 22:44 
AnswerRe: Active Directory UserPrincipal Extension not working Pin
Eddy Vluggen2-Nov-12 0:50
professionalEddy Vluggen2-Nov-12 0:50 
GeneralRe: Active Directory UserPrincipal Extension not working Pin
rcgneo2-Nov-12 5:48
rcgneo2-Nov-12 5:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.