-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Move]
Part-7 Classes into Different Library - Neo.Extensions
#3446
[Move]
Part-7 Classes into Different Library - Neo.Extensions
#3446
Conversation
…`, `AssemblyExtensions`, `StringExtensdions` Deleted `Helper.cs` file
…8/neo into rebuild/the-split-2
public static void Remove<T>(this HashSet<T> set, ISet<T> other) | ||
{ | ||
if (set.Count > other.Count) | ||
{ | ||
set.ExceptWith(other); | ||
} | ||
else | ||
{ | ||
set.RemoveWhere(u => other.Contains(u)); | ||
} | ||
} |
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.
( Does set.Remove(other)
have any difference from set.ExceptWith(other)
, even when set.Count <= other.Count
? )
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.
No clue. I'm just moving the method to appropriate namespaces or libraries.
@cschuchardt88 please fix conflics, is this one the current blocker? |
Awaiting on |
@cschuchardt88 please fix the conflicts. |
@Jim8y done, fixed all merging errors |
if (parameter.Value is BigInteger bi) | ||
builder.EmitPush(bi); | ||
else | ||
builder.EmitPush((BigInteger)typeof(BigInteger).GetConstructor([parameter.Value.GetType()]).Invoke([parameter.Value])); |
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.
Can we change this ugly old code?
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.
I rather leave for another pr.
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.
If not, it's ok to me
Description
Reorganized and move classes from
neo
library toneo.extensions
library.Fixed problems and warnings that occurred. Along with naming violations.
Change Log
Neo.VM.Helper
classScriptBuilderExtensions
classusing
statementStringExtensions
class and filenameType of change
How Has This Been Tested?
Checklist: