-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix broken behavior of IsVisibleInDynamoLibrary attribute with interfaces and Enums #9242
Changes from all commits
ad7f15c
0c29ef4
17473fc
b11a82a
562e1f3
eb216f8
5e650e8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.Serialization; | ||
using System.Text; | ||
|
||
namespace FFITarget | ||
|
@@ -125,4 +126,28 @@ public class AnotherClassWithNameConflict | |
public static string PropertyF { get; set; } | ||
} | ||
} | ||
|
||
[IsVisibleInDynamoLibrary(false)] | ||
[Serializable] | ||
public class TraceableId : ISerializable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @aparajit-pratap Can you explain how this test works, I can't see how adding a class with the tag verify stuff from my knowledge. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @QilongTang I need to think how I can test for interfaces not appearing in search and library. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @aparajit-pratap What do you think of either screen comparison or search results comparison? |
||
{ | ||
public int IntID { get; set; } | ||
|
||
public void GetObjectData(SerializationInfo info, StreamingContext context) | ||
{ | ||
info.AddValue("intID", IntID, typeof(int)); | ||
} | ||
} | ||
|
||
[IsVisibleInDynamoLibrary(false)] | ||
public enum Days | ||
{ | ||
Sunday, | ||
Monday, | ||
Tuesday, | ||
Wednesday, | ||
Thursday, | ||
Friday, | ||
Saturday | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aparajit-pratap what is the difference between these attribute types?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IsObsolete
is written by us andObsolete
is a standard attribute.