473,385 Members | 1,311 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

CSharp Class Design Issue

Hi All,
I have a serious issue regarding classes scope and
visibility. In my application, i have a class
name "TextFile", and also a few other classes
like "TotalWords", "TotalLines" and etc.., which are
suppose to describe the structure of my main TextFile
class. Also i have created some custom collection classes,
which only take items of the types, they are designed for.
Now the problem is that I want my element classes,
like "TotalWords", "TotalLines" to be visible only to the
children of my main, "TextFile" class, that is once i
create an instance of a "TextFile" class should these
other classes be visible, to create details of a TextFile.
Where in my code should i place these classes and also
their collection (wrapper classes).
The main problem i am facing is that, my Collections are
getting incremented multiple times, and i am in a big wreck

Thanks in Advance for any consideration
With Regards! Sunny
Nov 15 '05 #1
12 1984
Sunny,

You can not say that a whole class is only visible to a particular
class. If anything, the best you can do is declare your other classes as
internal and make sure that they are defined in the same place as the
TextFile class. This way, only classes in the assembly can see that class
(including your TextFile class).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Sunny" <gh**********@yahoo.com> wrote in message
news:0c****************************@phx.gbl...
Hi All,
I have a serious issue regarding classes scope and
visibility. In my application, i have a class
name "TextFile", and also a few other classes
like "TotalWords", "TotalLines" and etc.., which are
suppose to describe the structure of my main TextFile
class. Also i have created some custom collection classes,
which only take items of the types, they are designed for.
Now the problem is that I want my element classes,
like "TotalWords", "TotalLines" to be visible only to the
children of my main, "TextFile" class, that is once i
create an instance of a "TextFile" class should these
other classes be visible, to create details of a TextFile.
Where in my code should i place these classes and also
their collection (wrapper classes).
The main problem i am facing is that, my Collections are
getting incremented multiple times, and i am in a big wreck

Thanks in Advance for any consideration
With Regards! Sunny

Nov 15 '05 #2
See, this does not solves my prob, alone, also
The concept does not makes sense either, see, there is no
point of having like this

TextFile.Comment() (Does not makes sense, as y one would
need this)

TextFile aFile = new TextFile(Name, loc, ..) (Looks good)
Now, this one would make sense
aFile.Comment() = new Comment().... (since here u would
need them)

But how to do it like this, that is make Comments() class
visible only to children of TextFile().....
The problem is still there .....

With Regards
Sunny
-----Original Message-----
Sunny,

You can not say that a whole class is only visible to a particularclass. If anything, the best you can do is declare your other classes asinternal and make sure that they are defined in the same place as theTextFile class. This way, only classes in the assembly can see that class(including your TextFile class).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Sunny" <gh**********@yahoo.com> wrote in message
news:0c****************************@phx.gbl...
Hi All,
I have a serious issue regarding classes scope and
visibility. In my application, i have a class
name "TextFile", and also a few other classes
like "TotalWords", "TotalLines" and etc.., which are
suppose to describe the structure of my main TextFile
class. Also i have created some custom collection classes, which only take items of the types, they are designed for. Now the problem is that I want my element classes,
like "TotalWords", "TotalLines" to be visible only to the children of my main, "TextFile" class, that is once i
create an instance of a "TextFile" class should these
other classes be visible, to create details of a TextFile. Where in my code should i place these classes and also
their collection (wrapper classes).
The main problem i am facing is that, my Collections are
getting incremented multiple times, and i am in a big wreck
Thanks in Advance for any consideration
With Regards! Sunny

.

Nov 15 '05 #3
Sunny,

I'm not quite sure what you are trying to do. The following is not
correct syntax:

aFile.Comment() = new Comment()

You can not assign an object to a method (that is what the parenthesis
at the end of Comment mean).

You can not make a class visible only to another class. The lowest
level you can go is make the class accessible to other classes in the same
assembly, using the internal keyword.

Now if you don't want the Comment property/method to be exposed to
anyone but children of the TextFile class, then you can set the
accessibility of that to protected, and only itself and derived members will
be able to access it.

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

"Sunny" <gh**********@yahoo.com> wrote in message
news:05****************************@phx.gbl...
See, this does not solves my prob, alone, also
The concept does not makes sense either, see, there is no
point of having like this

TextFile.Comment() (Does not makes sense, as y one would
need this)

TextFile aFile = new TextFile(Name, loc, ..) (Looks good)
Now, this one would make sense
aFile.Comment() = new Comment().... (since here u would
need them)

But how to do it like this, that is make Comments() class
visible only to children of TextFile().....
The problem is still there .....

With Regards
Sunny
-----Original Message-----
Sunny,

You can not say that a whole class is only visible to

a particular
class. If anything, the best you can do is declare your

other classes as
internal and make sure that they are defined in the same

place as the
TextFile class. This way, only classes in the assembly

can see that class
(including your TextFile class).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Sunny" <gh**********@yahoo.com> wrote in message
news:0c****************************@phx.gbl...
Hi All,
I have a serious issue regarding classes scope and
visibility. In my application, i have a class
name "TextFile", and also a few other classes
like "TotalWords", "TotalLines" and etc.., which are
suppose to describe the structure of my main TextFile
class. Also i have created some custom collection classes, which only take items of the types, they are designed for. Now the problem is that I want my element classes,
like "TotalWords", "TotalLines" to be visible only to the children of my main, "TextFile" class, that is once i
create an instance of a "TextFile" class should these
other classes be visible, to create details of a TextFile. Where in my code should i place these classes and also
their collection (wrapper classes).
The main problem i am facing is that, my Collections are
getting incremented multiple times, and i am in a big wreck
Thanks in Advance for any consideration
With Regards! Sunny

.

Nov 15 '05 #4
Hi Nicholas,

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@tk2msftngp13.phx.gbl...
<snip>
You can not make a class visible only to another class.

<snip>

Well you can declare an inner class private to an outer class:

public class Foo
{
...
private class Bar
{
...
}
...
}

On the other hand, I'm guessing from Sunny's post that this isn't
exactly what he wants to do since a private inner class cannot be exposed
through the public interface of the outer class.

Sunny, you are creating a set of classes to be used by others, yes? Are
the set of classes you are creating going to be in a seperate assembly?

Regards,
Dan
Nov 15 '05 #5
Your overall intent is very unclear to me as well. Things like "TotalWords"
and "TotalLines" don't sound to me like class names but rather properties of
the TextFile class. What do those "classes" do exactly. They seem, by name
and by your description, to expose functionality explicitly linked to the
TextFile class, in which case it seems to me at the very least the TextFile
should use composition to contain/expose them. In that case marking them
internal seems to solve the problem of nobody "accidentally" using them
directly.

If you expose collection classes via the main class (TextFile) then you
would have something like
TextFile aFile = new TextFile(blah blah);
aFile.Comments.Add(new Comment(blah blah));

not

aFile.Comment() = new Comment();
"Sunny" <gh**********@yahoo.com> wrote in message
news:05****************************@phx.gbl...
See, this does not solves my prob, alone, also
The concept does not makes sense either, see, there is no
point of having like this

TextFile.Comment() (Does not makes sense, as y one would
need this)

TextFile aFile = new TextFile(Name, loc, ..) (Looks good)
Now, this one would make sense
aFile.Comment() = new Comment().... (since here u would
need them)

But how to do it like this, that is make Comments() class
visible only to children of TextFile().....
The problem is still there .....

With Regards
Sunny
-----Original Message-----
Sunny,

You can not say that a whole class is only visible to

a particular
class. If anything, the best you can do is declare your

other classes as
internal and make sure that they are defined in the same

place as the
TextFile class. This way, only classes in the assembly

can see that class
(including your TextFile class).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Sunny" <gh**********@yahoo.com> wrote in message
news:0c****************************@phx.gbl...
Hi All,
I have a serious issue regarding classes scope and
visibility. In my application, i have a class
name "TextFile", and also a few other classes
like "TotalWords", "TotalLines" and etc.., which are
suppose to describe the structure of my main TextFile
class. Also i have created some custom collection classes, which only take items of the types, they are designed for. Now the problem is that I want my element classes,
like "TotalWords", "TotalLines" to be visible only to the children of my main, "TextFile" class, that is once i
create an instance of a "TextFile" class should these
other classes be visible, to create details of a TextFile. Where in my code should i place these classes and also
their collection (wrapper classes).
The main problem i am facing is that, my Collections are
getting incremented multiple times, and i am in a big wreck
Thanks in Advance for any consideration
With Regards! Sunny

.

Nov 15 '05 #6
Sunny,

Perhaps you should consider using the singleton pattern for those
classes in which you do not want multiple instances to occur. You
might also think about embedding some of the classes within other
parent classes -- this would by default define the scope of the
embedded class.

--
~~~~~~~~~~
Tommie Carter
--

"Sunny" <gh**********@yahoo.com> wrote in message news:<0c****************************@phx.gbl>...
Hi All,
I have a serious issue regarding classes scope and
visibility. In my application, i have a class
name "TextFile", and also a few other classes
like "TotalWords", "TotalLines" and etc.., which are
suppose to describe the structure of my main TextFile
class. Also i have created some custom collection classes,
which only take items of the types, they are designed for.
Now the problem is that I want my element classes,
like "TotalWords", "TotalLines" to be visible only to the
children of my main, "TextFile" class, that is once i
create an instance of a "TextFile" class should these
other classes be visible, to create details of a TextFile.
Where in my code should i place these classes and also
their collection (wrapper classes).
The main problem i am facing is that, my Collections are
getting incremented multiple times, and i am in a big wreck

Thanks in Advance for any consideration
With Regards! Sunny

Nov 15 '05 #7
Try a design pattern using interfaces.

"Sunny" <gh**********@yahoo.com> wrote in message news:<0c****************************@phx.gbl>...
Hi All,
I have a serious issue regarding classes scope and
visibility. In my application, i have a class
name "TextFile", and also a few other classes
like "TotalWords", "TotalLines" and etc.., which are
suppose to describe the structure of my main TextFile
class. Also i have created some custom collection classes,
which only take items of the types, they are designed for.
Now the problem is that I want my element classes,
like "TotalWords", "TotalLines" to be visible only to the
children of my main, "TextFile" class, that is once i ...<snip>

Nov 15 '05 #8
oh ok i am sorry for this lemme right this thing again.
see

this is what i wanted
TextFile aFile = new TextFile("NameofFile", 23, 24)..
now remember my comment() class, i wanted to make it
visible only to this newly created object, like

aFile.comment() aComm = new comment("asap", "Fullcomment");
now adding this to my comments collection only for the
aFile object...
(so this is what i want to do now)
aFile.commColl.Add(aComm); now if i need to acces it,..
aFile.commColl.Item(ind)... and i will get aComm at the pos

The whole problem started some days back, when multiple
Objects of TextFile class were getting generated in loops,
and they were suppose to create comments for themselves
only, and not for the parent TextFile class, at the end of
the day, when i looked at the collections class for one
Textfile (object), i found multiple entries for it... and
everything is downhil since then, the servers went out and
hell broke loose...

Maybe this is not doable, or maybe perfection is too much
to ask for......

I really appreciate all your help, you are all great people

-----Original Message-----
Sunny,

I'm not quite sure what you are trying to do. The following is notcorrect syntax:

aFile.Comment() = new Comment()

You can not assign an object to a method (that is what the parenthesisat the end of Comment mean).

You can not make a class visible only to another class. The lowestlevel you can go is make the class accessible to other classes in the sameassembly, using the internal keyword.

Now if you don't want the Comment property/method to be exposed toanyone but children of the TextFile class, then you can set theaccessibility of that to protected, and only itself and derived members willbe able to access it.

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

"Sunny" <gh**********@yahoo.com> wrote in message
news:05****************************@phx.gbl...
See, this does not solves my prob, alone, also
The concept does not makes sense either, see, there is no point of having like this

TextFile.Comment() (Does not makes sense, as y one would need this)

TextFile aFile = new TextFile(Name, loc, ..) (Looks good) Now, this one would make sense
aFile.Comment() = new Comment().... (since here u would
need them)

But how to do it like this, that is make Comments() class visible only to children of TextFile().....
The problem is still there .....

With Regards
Sunny
>-----Original Message-----
>Sunny,
>
> You can not say that a whole class is only visible to
a particular
>class. If anything, the best you can do is declare
your other classes as
>internal and make sure that they are defined in the
same place as the
>TextFile class. This way, only classes in the assembly

can see that class
>(including your TextFile class).
>
> Hope this helps.
>
>
>--
> - Nicholas Paldino [.NET/C# MVP]
> - mv*@spam.guard.caspershouse.com
>
>
>"Sunny" <gh**********@yahoo.com> wrote in message
>news:0c****************************@phx.gbl...
>> Hi All,
>> I have a serious issue regarding classes scope and
>> visibility. In my application, i have a class
>> name "TextFile", and also a few other classes
>> like "TotalWords", "TotalLines" and etc.., which are
>> suppose to describe the structure of my main TextFile
>> class. Also i have created some custom collection

classes,
>> which only take items of the types, they are designed

for.
>> Now the problem is that I want my element classes,
>> like "TotalWords", "TotalLines" to be visible only to

the
>> children of my main, "TextFile" class, that is once i
>> create an instance of a "TextFile" class should these
>> other classes be visible, to create details of a

TextFile.
>> Where in my code should i place these classes and

also >> their collection (wrapper classes).
>> The main problem i am facing is that, my Collections are >> getting incremented multiple times, and i am in a big

wreck
>>
>> Thanks in Advance for any consideration
>> With Regards! Sunny
>
>
>.
>

.

Nov 15 '05 #9

"Sunny" <gh**********@yahoo.com> wrote in message
news:05****************************@phx.gbl...

See, this does not solves my prob, alone, also
The concept does not makes sense either, see,
there is no point of having like this

TextFile.Comment() (Does not makes sense, as y one
would need this)

TextFile aFile = new TextFile(Name, loc, ..) (Looks good)
Now, this one would make sense
aFile.Comment() = new Comment().... (since here u would
need them)

But how to do it like this, that is make Comments() class
visible only to children of TextFile().....
The problem is still there .....


The classes you've mentioned [in this, and your earlier post]:

* TotalWords
* TotalLines
* Comment

model concepts which only have meaning within the context of a TextFile
class. Given this, it does not seem appropriate to either:

* Model them as classes [in the case of TotalWords and
TotalLines], or to

* Model them as separate classes even if, as suggested, they
are declared in the same assembly for purposes of restricting
visibility

Instead, a possibly more appropriate approach might be to model these as
attributes [fields / members] of TextFile. One approach might be to model
them as properties, and provide suitable getter / setters:

* Model TotalLines and TotalWords as integer-types
* Comment could might simply be a String-type

The reason this is suggested is that there seems to be little 'intelligence'
in these items - the suggested existing types would appear to provide the
necessary basic behaviour. You would, generally, only use classes where more
sophisticated behaviour was required.

Of course it may be that these items *may* need to exhibit more
sophisticated behaviour, in which case it makes sense to model them as
classes. For example, TotalLines might perform some sort of validation [e.g.
throw an execption if there are zero lines ?], or Comment might be an
example of a more general class that might be used throughout your
application, or even other applications, in which case you'd want to make it
part of a library / collection of general-purpose classes.

However, with TotalLines and TotalWords, the issue of context remains: these
classes make no sense by themselves. For example, of what use could an
instance of TotalLines be without its 'parent' TextFile object ? Modelling
TotalLines as a top-level class encourages such things [even if you do
things to restrict visisbility like marking them 'internal' within an
asembly, or things to better manage them like enclosing them [along with
TextFile] in a separate namespace.

An approach allowing you to implement these items as classes, whilst
restricting visibility, and maintaining context, is to model them as
'private' nested classes. In this way:

* TextFile controls all aspects of these items, from the
number of instances, to the method calls made

* TextFile controls the release of data / method return
values from these objects

Thus, it would be possible to create sophisticated classes for TextFile's
exclusive use, but have the outside world only see what TextFile chooses to
have revealed all without danger of the classes being used in an
inapproapriate way [which can still happen if they are top-level classes in
an assembly].

Finally, since it is not known what your actual class design requirements
are, please take this message as no more than a source of possible ideas to
explore. It is certainly true there are often several ways to implement a
design - having several options available allows you to carefully craft an
appropriate solution to the problem at hand.

I hope this helps.

Anthony Borla
Nov 15 '05 #10
I understand what your explanation of totallines and
totalwords, they are not classes.... mymistake of morning

the total classes are like this, all of them
textfile(), comment(), variable(), macro(), statement()
also there are collection classes (wrappers) for all of
the above, that take only objects of the one they are
designed for, now.....

see this is what i think should happen, i should only be
able to create objects of comment, or variable or macro..
from one of the instances of textfile class, and not from
the textfile class, (textfile.comment acom = new comment
(..)) (there is no reason for making it like this)

This is what i think should happen
textfile aFile = new textfile(.......)
and now
aFile.comment acom = new comment(...), and then adding
this comment to the collection of aFile's comments
collection only, and only

afile.comColl.Add(acom), and then can be accessed as

textfile.filesColl.Item(i).comColl.item(the one i entered)
With Regards
Sunny
-----Original Message-----

"Sunny" <gh**********@yahoo.com> wrote in message
news:05****************************@phx.gbl...

See, this does not solves my prob, alone, also
The concept does not makes sense either, see,
there is no point of having like this

TextFile.Comment() (Does not makes sense, as y one
would need this)

TextFile aFile = new TextFile(Name, loc, ..) (Looks good) Now, this one would make sense
aFile.Comment() = new Comment().... (since here u would
need them)

But how to do it like this, that is make Comments() class visible only to children of TextFile().....
The problem is still there .....

The classes you've mentioned [in this, and your earlier

post]:
* TotalWords
* TotalLines
* Comment

model concepts which only have meaning within the context of a TextFileclass. Given this, it does not seem appropriate to either:

* Model them as classes [in the case of TotalWords and
TotalLines], or to

* Model them as separate classes even if, as suggested, they are declared in the same assembly for purposes of restricting visibility

Instead, a possibly more appropriate approach might be to model these asattributes [fields / members] of TextFile. One approach might be to modelthem as properties, and provide suitable getter / setters:

* Model TotalLines and TotalWords as integer-types
* Comment could might simply be a String-type

The reason this is suggested is that there seems to be little 'intelligence'in these items - the suggested existing types would appear to provide thenecessary basic behaviour. You would, generally, only use classes where moresophisticated behaviour was required.

Of course it may be that these items *may* need to exhibit moresophisticated behaviour, in which case it makes sense to model them asclasses. For example, TotalLines might perform some sort of validation [e.g.throw an execption if there are zero lines ?], or Comment might be anexample of a more general class that might be used throughout yourapplication, or even other applications, in which case you'd want to make itpart of a library / collection of general-purpose classes.

However, with TotalLines and TotalWords, the issue of context remains: theseclasses make no sense by themselves. For example, of what use could aninstance of TotalLines be without its 'parent' TextFile object ? ModellingTotalLines as a top-level class encourages such things [even if you dothings to restrict visisbility like marking them 'internal' within anasembly, or things to better manage them like enclosing them [along withTextFile] in a separate namespace.

An approach allowing you to implement these items as classes, whilstrestricting visibility, and maintaining context, is to model them as'private' nested classes. In this way:

* TextFile controls all aspects of these items, from the
number of instances, to the method calls made

* TextFile controls the release of data / method return
values from these objects

Thus, it would be possible to create sophisticated classes for TextFile'sexclusive use, but have the outside world only see what TextFile chooses tohave revealed all without danger of the classes being used in aninapproapriate way [which can still happen if they are top-level classes inan assembly].

Finally, since it is not known what your actual class design requirementsare, please take this message as no more than a source of possible ideas toexplore. It is certainly true there are often several ways to implement adesign - having several options available allows you to carefully craft anappropriate solution to the problem at hand.

I hope this helps.

Anthony Borla
.

Nov 15 '05 #11
"Sunny" <gh**********@yahoo.com> wrote in message
news:05****************************@phx.gbl...

oh ok i am sorry for this lemme right this thing again.
see

this is what i wanted
TextFile aFile = new TextFile("NameofFile", 23, 24)..
now remember my comment() class, i wanted to make it
visible only to this newly created object, like

aFile.comment() aComm = new comment("asap", "Fullcomment");
now adding this to my comments collection only for the
aFile object...
(so this is what i want to do now)
aFile.commColl.Add(aComm); now if i need to acces it,..
aFile.commColl.Item(ind)... and i will get aComm at the pos

The whole problem started some days back, when multiple
Objects of TextFile class were getting generated in loops,
and they were suppose to create comments for themselves
only, and not for the parent TextFile class, at the end of
the day, when i looked at the collections class for one
Textfile (object), i found multiple entries for it... and
everything is downhil since then, the servers went out and
hell broke loose...

Maybe this is not doable, or maybe perfection is too much
to ask for......

I really appreciate all your help, you are all great people


Ok, from your description Comment is a top-level class, so it is usable by
any classes requiring its services. Correct ?

Also, it looks as if each TextFile object owns a collection of such objects,
thus it may have zero, or more such objects. Correct ?

The problem, though, is that duplicate Comment objects exist in a TextFile
object's Comment-collection, and you wish to find a way to distinguish
between them, perhaps avoiding the addition of duplicate Comment objects in
the first place. Correct ?

If all the above is true, then your problem appears to be one of ensuring
each Comment object can be uniquely identified within the context in which
it appears. In other words:

* If a Comment object may only belong to a single
TextFile objet's collection [which appears to be the
case], then you could identify each such object with
a timestamp, or even just on the 'comment text' it
contains [assuming duplicate text is unlikely]

* If a Comment objects from different TextFile objects
can reside in the same collection then more effort into
ensuring unique identity has to be made. You could, in
addition to any timestamp information, also include the
owning object's identifer [it's filename / path may well
suffice in this role ?]

Anyway, to cut a long story short, if this is indeed your problem, you'll
want to expand your comment class to include some sort of identifier
attribute(s) as described above. Post again if needing more details.

I hope this helps.

Anthony Borla
Nov 15 '05 #12

"Sunny" <gh**********@yahoo.com> wrote in message
news:05****************************@phx.gbl...

I understand what your explanation of totallines and
totalwords, they are not classes.... mymistake of morning
<SNIP>
This is what i think should happen
textfile aFile = new textfile(.......)
and now
aFile.comment acom = new comment(...), and then adding
this comment to the collection of aFile's comments
collection only, and only

afile.comColl.Add(acom), and then can be accessed as

textfile.filesColl.Item(i).comColl.item(the one i entered)


See my response to your other message. It *sounds* as if it is an object
identity issue, though you will have to investigate this further.

Cheers,

Anthony Borla
Nov 15 '05 #13

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

Similar topics

6
by: rodchar | last post by:
Hey all, I'm trying to understand Master/Detail concepts in VB.NET. If I do a data adapter fill for both customer and orders from Northwind where should that dataset live? What client is...
5
by: EqDev | last post by:
I have a class that is a control derived from UserControl. I want to use serialization and deserialization with this calss but I get an exception "Cannot serialize member...
10
by: Brian Parker | last post by:
I inherited a C++ DLL that I need to remotely call multiple times asynchronously. What I have developed is: CSharp web application that makes asynchronous calls to a CSharp Web Service. The...
15
by: cody | last post by:
currently when trying to change a struct returned by a property, the compiler generates an error. so if you try someControl.Location.Y = 10; you get an error which is logical if one...
7
by: mathieu | last post by:
Hello, I did read the FAQ on template(*), since I could not find an answer to my current issue I am posting here. I have tried to summarize my issue in the following code (**). Basically I am...
6
by: toton | last post by:
Hi, If I have a singleton class based on dynamic initialization (with new ) , is it considered a memory leak? Anything in C++ standard says about it ? And little off - topic question , If the...
3
by: Yoavo | last post by:
Hi, I have an application that was written as ATL project which uses as a server application and has a COM class which implements IConnectionPoints interface (to fire events). I have clients...
2
by: Ram | last post by:
Hi, I have created class diagrams in visio. Is there any way to create csharp (.cs) class directly from this visio diagram? I googled it but could not find any solution. Please help. Thanks...
5
by: pgrazaitis | last post by:
I cant seem to get my head wrapped around this issue, I have myself so twisted now there maybe no issue! Ok so I designed a class X that has a few members, and for arguments sake one of the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.