|
internal protected is a superset of internal and protected. Was this your understanding?
|
|
|
|
|
These are access specifiers,
If we use "protected" before a method/variable, it can be accessed only to derived class.
If we use "internal" before a method/variable, it can be access only within the same assembly.
So, internal protected can be accessed within the same assembly as well as in derived class.
Hope this served your purpose.;P
|
|
|
|
|
Hi,
I have two different services; those are running under windows box and Linux box. Both Windows and Linux services had been developed by .NET by the help of respective SDK’s. Both business service systems are running fine based on its scope. But now, I wanted to implement a communication channel or some mechanism, which will help these different services to share objects/data. Apart from that, I am not allowed to use web interfaces to facilitate the communication since both windows and Linux machines resides in same intranet.
Is it possible to communicate between two distinct OS environment using .NET remoting?
If so, what could be the fine tuned way to achieve the same?
What are the other possible thoughts to implement the same apart from remoting and web service?
Any thoughts / url/ sample application will be appreciated.
Thanks in advance.
|
|
|
|
|
Since this will be new territory for many of the people on this forum, please let us know how it turns out. One possibility is for you to write an article about your experiences as you try this.
Phil
|
|
|
|
|
Items[] ItemsArray = new Items[100];<br />
Items[] AlphabetisedItemsArray = new Items[100];
I have an Items array of size 1*100, now lets say i have populated that array, and want to organise its elements in alphabetical order, by item name.
I think the code should be something like this :
AlphabetisedItemsArray = ItemsArray.OrderBy(ItemsArray,Items.getItemName)
If it helps at all, here is the structure of the items class:
public class Items<br />
{<br />
string Name;
<br />
public void SetName(string aName)<br />
{<br />
Name = aName;<br />
}<br />
public string GetName()<br />
{<br />
return Name;<br />
}<br />
}<br />
Any help is greatly appreciated, thanks =)
|
|
|
|
|
|
i ended up doing it manually =)
while (c < NumberOfRecords)<br />
{<br />
<br />
while (index < NumberOfRecords)<br />
{<br />
AlphaItem = AlphabetisedItemNames[c];<br />
NonAlphaItem = ItemsArray[index].GetName();<br />
<br />
if (NonAlphaItem == AlphaItem)<br />
{<br />
AlphabetisedItemsArray[c] = ItemsArray[index];<br />
<br />
c++;<br />
<br />
if (c < NumberOfRecords)<br />
{ index = 0; }<br />
else<br />
{ index = NumberOfRecords; }<br />
<br />
}<br />
else { index++; }<br />
}<br />
<br />
c++;<br />
<br />
}
|
|
|
|
|
Like Kevin said, but you can make it a little easier on yourself by defining a function with a Comparison<Items> signature:
Items[] theItems = ...;
Array.Sort<Items>(theItems, CompareItems);
...
int CompareItems(Items first, Items second)
{
return first.Name.CompareTo(second.Name);
}
|
|
|
|
|
When executing the code -
Environment.GetEnvironmentVariable("USERNAME").ToString(CultureInfo.CurrentCulture)
under the Service Account gives the error -
'Object reference not set to an instance of an object'.
Running the same code using a local machine accounts credentials does not fail.
Pls help me with the possible cause and resolution.
Cheers !
Rajni
|
|
|
|
|
Hi,
when there is no user, what in your opinion should the value be for:
Environment.GetEnvironmentVariable("USERNAME") ??
and who's culture do you want then ?
You should check for null, and maybe work with a default if that makes sense at all.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi All
I want to print a salary slip for the employees in one of my project the slips have to print using DMP printer, How to genrate the print using DMP in C#
|
|
|
|
|
As long as you have the printer driver installed, you can "draw" the slip however you want. And no, I'm not going to write the code for you before you ask.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
I am using Visual Studio 2005 Standard Edition. I know that crystal reports has come in built with this version. But I am unable to view the crystal report template in add new items. How to get that template. Help needed. Thank you.
|
|
|
|
|
Its on 8th number from top in Add New Items, check it.
Imran
|
|
|
|
|
Pick one forum and stick with it. Please read the forum guidelines.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Lecky, I believe I saw in one of your posts recently that you live in the upper midwest, what state do you live in?
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
South Dakota...technically called the Great Plains area. I am in the SE corner by Iowa and Nebraska. Are you near?
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Yes, I am in Minnesota, about 2 hours north of the twin cities. I just moved here from Arizona about 4 months ago. What is with the accents on all these Minnesotian's? It drives me crazy
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
What accent, eh?
|
|
|
|
|
well all the Swedes and Norwegians who didn't like their countries govts a century ago apparently really did like 8 months of snow every year, so they all moved to the same part of the US.
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
Oh yah! Ole and Sven jokes and lefsa for everyone!
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Holy Buckets Those sven and ole jokes do crack me up though. My father in law must know every single one, I hear a new one almost every week
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
You have to rent the movie "Drop Dead Gorgeous." HILARIOUS! One of my fave movies of all time. Makes fun of the MN accent. You get used to the accent after awhile, but the old folks will come up with some weird phrases. One I hear often is "Well alright then there." I take it there are Norweigan Days in your area.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Yeah they have a lot of strange phrases around here, I hear oofdah all the time(however you spell that). The first time I heard it I about soiled myself
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|