-
Notifications
You must be signed in to change notification settings - Fork 742
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
chore: Adjust Uno.Core dependencies #7461
Conversation
aedd3bb
to
0d5b23d
Compare
private readonly object _gate = new object(); | ||
|
||
private bool _disposed; | ||
private List<IDisposable?> _disposables; |
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.
On Add
, we throw on nulls. So this can be non-nullable I believe?
|
||
lock (_gate) | ||
{ | ||
Array.Copy(_disposables.Where(d => d != null).ToArray(), 0, array, arrayIndex, array.Length - arrayIndex); |
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.
Most likely the Where
part won't be needed if my previous comment is correct.
|
||
lock (_gate) | ||
{ | ||
res = _disposables.Where(d => d != null).ToList(); |
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.
Same about null check here.
Action = action; | ||
} | ||
|
||
public Action Action { get; private set; } |
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.
nit: Setter not actually needed
public Action Action { get; private set; } | |
public Action Action { get; } |
|
||
public static string JoinBy(this IEnumerable<string> items, string joinBy) | ||
{ | ||
return string.Join(joinBy, items.ToArray()); |
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.
string.Join
already has an overload that accepts IEnumerable<string>
, why to call .ToArray
?
/// <param name="items">The items to add.</param> | ||
public static void AddRange<T>(this ICollection<T> collection, IEnumerable<T> items) | ||
{ | ||
items.ForEach(collection.Add); |
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 think this may perform better if I understand dotnet/roslyn#5835 correctly. Can help to see the decompiled source for both.
items.ForEach(collection.Add); | |
items.ForEach(item => collection.Add(item)); |
45e4eda
to
6b1f715
Compare
c93be94
to
7badd81
Compare
BREAKING CHANGE: - Removal of Uno.Extensions.ObservableCollectionUpdateResultsExtensions - Removal of UIAsyncOperation.CompletionSource - Changed type of ApiInformation.NotImplementedLogLevel to Uno.Foundation.Logging.LogLevel
…ons.Logging.Singleton
The build 36380 found UI Test snapshots differences: Details
|
GitHub Issue (If applicable): closes #
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):