.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 30th, 2015, 09:43 AM
francis77 francis77 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Posts: 2 francis77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 40 m
Reputation Power: 0
C# Accessing members from another class

I am trying to access member from another class. The class is from another project but in the same solution, I added a reference to the namespace in Visual Studio. It tells me that the member cannot be accessed because of its level of protection. It says "incoherent accessibility", the member 1 is less accessible than the member 2. Both members are public but I still get this error.

Reply With Quote
  #2  
Old December 11th, 2015, 07:03 AM
MorinT MorinT is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2015
Location: San Jose, CA
Posts: 7 MorinT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 44 m 50 sec
Reputation Power: 0
Smile Not possible.

Hi Francis, you have already written that both classes are in different project, so how can you expect them to access each other's members.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > C# Accessing members from another class


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap