Recommended resolution of 3.6.2. compiler warnings

Recommended resolution of 3.6.2. compiler warnings

Old forum URL: forums.lhotka.net/forums/t/6832.aspx


DanEssin posted on Tuesday, April 21, 2009

The cslacs project generates the following compiler warnings. What are the recommended resolutions for these items?

Thanks in advance,
Dan Essin
----------------------------
Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}

Warning          14        'Csla.Core.IEditableCollection.IsSavable' hides inherited member

                     'Csla.Core.ITrackStatus.IsSavable'. Use the new keyword if hiding was intended.

                        G:\cslacs\Csla\Core\IEditableCollection.cs

 

Warning          15        'Csla.C5.IList<T>.IsFixedSize' hides inherited member

                    'System.Collections.IList.IsFixedSize'. Use the new keyword if hiding was intended.

                        G:\cslacs\Csla\C5\Interfaces.cs

 

Warning          21        Overloaded method 'Csla.C5.DictionaryBase<K,V>.Find(ref K, out V)'

                   differing only in ref or out, or in array rank, is not CLS-compliant

                        G:\cslacs\Csla\C5\Dictionaries.cs

 

Warning          22        'Csla.C5.IList<T>.IsFixedSize' hides inherited member

                   'System.Collections.IList.IsFixedSize'. Use the new keyword if hiding was intended.

                        G:\cslacs\Csla\C5\Interfaces.cs

 

Warning          23        Overloaded method 'Csla.C5.IDictionary<K,V>.Find(ref K, out V)'

                   differing only in ref or out, or in array rank, is not CLS-compliant

                        G:\cslacs\Csla\C5\Interfaces.cs

 

Warning          24        Overloaded method 'Csla.C5.GuardedDictionary<K,V>.Find(ref K, out

                   V)' differing only in ref or out, or in array rank, is not CLS-compliant

                        G:\cslacs\Csla\C5\Wrappers.cs

 

Warning          52        Overloaded method 'Csla.C5.IDictionary<K,V>.Find(ref K, out V)'

                   differing only in ref or out, or in array rank, is not CLS-compliant

                        G:\cslacs\Csla\C5\Interfaces.cs

 

Warning          53        Overloaded method 'Csla.C5.DictionaryBase<K,V>.Find(ref K, out V)'

                   differing only in ref or out, or in array rank, is not CLS-compliant

                        G:\cslacs\Csla\C5\Dictionaries.cs

 

Warning          54        Overloaded method 'Csla.C5.GuardedDictionary<K,V>.Find(ref K, out

                   V)' differing only in ref or out, or in array rank, is not CLS-compliant

                        G:\cslacs\Csla\C5\Wrappers.cs

 


JoeFallon1 replied on Wednesday, April 22, 2009

In the past, Rocky has tried very hard to NOT take any dependencies on external libraries. But the new LinqBindingList Balanced Red-Black tree code requires the use of the C5 library.

It is that code which is generating the compiler warnings.

The recommendation is for someone(you?) to join the C5 open source project and resolve them. Then Rocky can implement the upgraded code in the next version of CSLA.

Joe

DanEssin replied on Wednesday, April 22, 2009

Thanks for the feedback. I'm familiar with the C% library. Having looked into the various collection libraries that are out there, I think it's one of the best. I would support making this a dependency if it helps to get the job done. I really hate loose ends like compiler warnings, vsi's that won't install without giving security warnings, etc. because they make me worry that I've failed to grasp some important fundamental concept.

Thanks again,
Dan

Copyright (c) Marimer LLC