Add contracts to System.Windows.Forms, System.Windows.Data classes#387
Add contracts to System.Windows.Forms, System.Windows.Data classes#387Patashu wants to merge 11 commits intomicrosoft:masterfrom
Conversation
my mistake! it didn't save
…terCollection, SqlDbType
|
My pull request was denied due to many lines like EXEC : error : Method System.Windows.Forms.DataGridViewRowCollection.AddInternal(System.Boolean, System.Object[]) exists only in contract reference assembly [C:\projects\codecontracts\Microsoft.Research\Contracts\System.Windows But in the system library, this method does exist: internal int AddInternal(bool newRow, object[] values) Can you explain what I am doing wrong/how to fix the problem? |
|
@Patashu The problem is that you are specifying contracts for members which are inaccessible from outside of an assembly, i.e. internals and privates. For example So, why the error mentions that the method exist only in contract reference assembly? It clearly exists also in System.Windows.Forms.dll but is not accessible. So finally, to make your change work you need to remove all internal and private members/types from your code. |
|
Good explanation, thanks. I'll fix it tomorrow. |
Just a bunch of contracts that I noticed were missing.
First pull request; LMK if I did anything wrong.