c# Programming Glossary: exposing
Public Fields versus Automatic Properties http://stackoverflow.com/questions/1180860/public-fields-versus-automatic-properties methods properties in C# for class fields instead of exposing the fields to the outside world. But there are many times when..
An object with the same key already exists in the ObjectStateManager. The ObjectStateManager cannot track multiple objects with the same key http://stackoverflow.com/questions/12585664/an-object-with-the-same-key-already-exists-in-the-objectstatemanager-the-object key to find the entity. You can create simple interface exposing the key IEntity in my example and implement it in all your entities..
.NET Asynchronous stream read/write http://stackoverflow.com/questions/1540658/net-asynchronous-stream-read-write I don't know how to solve this problem without exposing this byte field in the outer scope... and I'm almost sure it..
What's the best way of implementing a thread-safe Dictionary? http://stackoverflow.com/questions/157933/whats-the-best-way-of-implementing-a-thread-safe-dictionary is inherently not thread safe. That can be one reason for exposing a synchronization object outside your class. Another way to..
What is the C# equivalent of friend? [duplicate] http://stackoverflow.com/questions/204739/what-is-the-c-sharp-equivalent-of-friend of a class to be accessible to a Tester class without exposing them to other classes. In C I'd just declare the Tester class..
Why is lock(this) {…} bad? http://stackoverflow.com/questions/251391/why-is-lockthis-bad locking mechanism. Using this violates encapsulation by exposing part of your locking implementation to the public. It is also..
Collection<T> versus List<T> what should you use on your interfaces? http://stackoverflow.com/questions/271710/collectiont-versus-listt-what-should-you-use-on-your-interfaces Sort and so on. However if this is a collection you are exposing then it is likely that you control the semantics of the list..
C# - List<T> or IList<T> http://stackoverflow.com/questions/400135/c-sharp-listt-or-ilistt list ilist share improve this question If you are exposing your class through a library that others will use you generally..
ReadOnlyCollection or IEnumerable for exposing member collections? http://stackoverflow.com/questions/491375/readonlycollection-or-ienumerable-for-exposing-member-collections or IEnumerable for exposing member collections Is there any reason to expose an internal..
To return IQueryable<T> or not return IQueryable<T> http://stackoverflow.com/questions/718624/to-return-iqueryablet-or-not-return-iqueryablet such as paging. What are the pros and cons to exposing IQueryable from the data repo Any help is very much appreciated... optimize profile the DAL For stability I've taken to not exposing IQueryable T or Expression ... on my repositories. This means..
Why is JsonRequestBehavior needed? http://stackoverflow.com/questions/8464677/why-is-jsonrequestbehavior-needed makes you consider the implications of what data you are exposing before you decide to expose it over HTTP GET. Update From my..
?œDo not use Abstract Base class in Design; but in Modeling/Analysis??/a> http://stackoverflow.com/questions/9470013/do-not-use-abstract-base-class-in-design-but-in-modeling-analysis makes you consider the implications of what data you are exposing before you decide to expose it over HTTP GET. Update From my..
Is it possible to force an auto-property to use a readonly backing field? http://stackoverflow.com/questions/1050761/is-it-possible-to-force-an-auto-property-to-use-a-readonly-backing-field the custom backing field being readonly really worthwhile Exposing the field as public is another option I suppose it just seems..
Calling .NET/C# from R http://stackoverflow.com/questions/12410528/calling-net-c-from-r c# visual studio 2010 r share improve this question Exposing the .NET dll as COM dll and then calling a COM object in the..
Accessing a VSTO application-addin types from VBA (Excel) http://stackoverflow.com/questions/1474205/accessing-a-vsto-application-addin-types-from-vba-excel here COM Interop Exposed Part 2 under the section titled Exposing .NET Events to COM . If you really insist on enabling VBA to..
What's the best way of implementing a thread-safe Dictionary? http://stackoverflow.com/questions/157933/whats-the-best-way-of-implementing-a-thread-safe-dictionary of your dictionary that would result in a deadlock . Exposing the synchronization object allows the consumer to make those..
Exposing the indexer / default property via COM Interop http://stackoverflow.com/questions/299251/exposing-the-indexer-default-property-via-com-interop the indexer default property via COM Interop I am attempting..
How do I create an immutable Class? http://stackoverflow.com/questions/352471/how-do-i-create-an-immutable-class if the property is read only the list can be modified. Exposing the IEnumerable of the list makes it immutable. I wanted to..
What is Difference between Property and Variable in C# http://stackoverflow.com/questions/4142867/what-is-difference-between-property-and-variable-in-c-sharp right now. Note from me WPF bindings work on properties 5 Exposing a public field is an FxCop violation For many of the reasons..
Entity Framework Code-First - Define the key for this EntityType http://stackoverflow.com/questions/5482670/entity-framework-code-first-define-the-key-for-this-entitytype Role Role get set public virtual App_user App_user get set Exposing junction table is meaningless if you don't need additional properties..
Exposing Property as Variant in .NET for Interop http://stackoverflow.com/questions/9481140/exposing-property-as-variant-in-net-for-interop Property as Variant in .NET for Interop I am creating a wrapper..
OData with ServiceStack? http://stackoverflow.com/questions/9577938/odata-with-servicestack agnostic interoperable API to the outside world. Exposing an IQueryable OData endpoint effectively couples your services..
|