473,507 Members | 3,706 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fields

Is there a field 'type' that differentiates between a method field and a
class field, or are "method fields" and "class fields" as good as I'm going
to get? Thanks in advance.

Mark
Nov 16 '05 #1
3 1321
Mark,

Can you elaborate on what you mean? What do you mean by a "method
field"? Or do you mean just a method? If you are speaking about
reflection, then methods have MethodInfo associated with them, and fields
have FieldInfo associated with them.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mark" <fi******@idonotlikejunkmail.umn.edu> wrote in message
news:eF**************@TK2MSFTNGP15.phx.gbl...
Is there a field 'type' that differentiates between a method field and a
class field, or are "method fields" and "class fields" as good as I'm
going
to get? Thanks in advance.

Mark

Nov 16 '05 #2
Sorry for not clear. Let's use the example below. If you and I are on the
same team, and we're talking about the code below, I'd love to have common
terminology for differentiating between the field myClassString and the
field myMethodString below. The first is accessible throughout the class.
The second has a scope limited to the method. So ... is there a "type" of
field so you know exactly what scope of field I'm talking about without
looking at the code? THANKS again. - Mark

class myClass {

private string myClassString "scope limited to class";

myClass(){}

myMethod()
{
string myMethodString = "scope limited to method";
}
}

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:e0**************@TK2MSFTNGP15.phx.gbl...
Mark,

Can you elaborate on what you mean? What do you mean by a "method
field"? Or do you mean just a method? If you are speaking about
reflection, then methods have MethodInfo associated with them, and fields
have FieldInfo associated with them.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mark" <fi******@idonotlikejunkmail.umn.edu> wrote in message
news:eF**************@TK2MSFTNGP15.phx.gbl...
Is there a field 'type' that differentiates between a method field and a
class field, or are "method fields" and "class fields" as good as I'm
going
to get? Thanks in advance.

Mark


Nov 16 '05 #3
Mark,

myMethodString is not a field. myClassString is a field.
myMethodString is a variable.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mark" <fi******@idonotlikejunkmail.umn.edu> wrote in message
news:uq**************@TK2MSFTNGP11.phx.gbl...
Sorry for not clear. Let's use the example below. If you and I are on
the
same team, and we're talking about the code below, I'd love to have common
terminology for differentiating between the field myClassString and the
field myMethodString below. The first is accessible throughout the class.
The second has a scope limited to the method. So ... is there a "type" of
field so you know exactly what scope of field I'm talking about without
looking at the code? THANKS again. - Mark

class myClass {

private string myClassString "scope limited to class";

myClass(){}

myMethod()
{
string myMethodString = "scope limited to method";
}
}

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in
message news:e0**************@TK2MSFTNGP15.phx.gbl...
Mark,

Can you elaborate on what you mean? What do you mean by a "method
field"? Or do you mean just a method? If you are speaking about
reflection, then methods have MethodInfo associated with them, and fields
have FieldInfo associated with them.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mark" <fi******@idonotlikejunkmail.umn.edu> wrote in message
news:eF**************@TK2MSFTNGP15.phx.gbl...
> Is there a field 'type' that differentiates between a method field and
> a
> class field, or are "method fields" and "class fields" as good as I'm
> going
> to get? Thanks in advance.
>
> Mark
>
>



Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1782
by: Tim Cowan | last post by:
Hi I am trying to create a CSV file with some fields in double quotes ("). I am not having any luck. This is what I want; "8684","COSTING","000010001","REG",X4,15.00, ,14,0,14,9,6 I am...
0
1527
by: bill mahoney | last post by:
I have access 2k and I have 2 tables. One is a 7X6 table representing a month with zeroes padding the fields where no day exist. For example February 2003 0 0 0 0 0 0 1 2 3 4 5 6 7 ...
4
5993
by: Melissa | last post by:
I have a frontend file named CustomerApp and backend file named CustomerData. CustomerApp is at C:\Customer Database and CustomerData is at S:\Customer Database. Could someone help me with the code...
5
10855
by: Megan | last post by:
Hi everybody- I'm helping a friend with a music database. She has an old one and is creating a new one. She wants to compare records and fields in the old database with records and fields in the...
2
1905
by: Darryl Kerkeslager | last post by:
As the subject above hopefully makes clear, I want to do several reports, "with lots of fields not otherwise in database". These reports also have variable-length text. I have defined the...
0
1420
by: Proteus | last post by:
Hi, I'm using access 97 on windows 98. I have table with 162 fields in it. I need to withdraw this information in a (totals) query with 164 fields (162 "avg" fields and 2 "count" fields). When I...
5
14002
by: Genboy | last post by:
My "VIS" Website, which is a C# site created in VS.NET, Framework 1.1, is no longer compiling for me via the command line. As I have done 600 times in the last year and a half, I can compile to...
4
1849
by: Vigneshwar Pilli via DotNetMonster.com | last post by:
Hey, Well, I have a Problem. I have designed a table which has few fields which are being declared in the database of type .... char of length 10. and other fields with varchar 50 and...
9
5674
by: sean.scanlon | last post by:
can someone help understand how i can could access a struct field dymanically like: foo->fields ? when i try to compile this i get the following error: 'struct pwd' has no member named 'fields'...
482
27257
by: bonneylake | last post by:
Hey Everyone, Well i am not sure if this is more of a coldfusion problem or a javscript problem. So if i asked my question in the wrong section let me know an all move it to the correct place. ...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.