Skip to content

Commit

Permalink
Few missing language types in .cs (#14323)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtkech authored Sep 13, 2023
1 parent abd536b commit a2876bf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public async Task OnResultExecutionAsync(ResultExecutingContext context, ResultE
{
var site = (await _siteService.GetSiteSettingsAsync());
var settings = site.As<FacebookSettings>();
if (!String.IsNullOrWhiteSpace(settings?.AppId))
if (!string.IsNullOrWhiteSpace(settings?.AppId))
{
if (settings.FBInit)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionE

if (workflowTypeEntries.Any())
{
var workflowTypeIds = workflowTypeEntries.Select(x => Int64.Parse(x.WorkflowId)).ToList();
var workflowTypeIds = workflowTypeEntries.Select(x => long.Parse(x.WorkflowId)).ToList();
var workflowTypes = (await _workflowTypeStore.GetAsync(workflowTypeIds)).ToDictionary(x => x.Id);
var correlationId = routeValues.GetValue<string>("correlationid");

foreach (var entry in workflowTypeEntries)
{
if (workflowTypes.TryGetValue(Int64.Parse(entry.WorkflowId), out var workflowType))
if (workflowTypes.TryGetValue(long.Parse(entry.WorkflowId), out var workflowType))
{
var activity = workflowType.Activities.Single(x => x.ActivityId == entry.ActivityId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public RequireSettings AtLocation(ResourceLocation location)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public RequireSettings UseCulture(string cultureName)
{
if (!String.IsNullOrEmpty(cultureName))
if (!string.IsNullOrEmpty(cultureName))
{
Culture = cultureName;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class MyTestPartSettingsDisplayDriver : ContentTypePartDefinitionDisplayD
{
public override IDisplayResult Edit(ContentTypePartDefinition contentTypePartDefinition, IUpdateModel updater)
{
if (!String.Equals(nameof(MyTestPart), contentTypePartDefinition.PartDefinition.Name))
if (!string.Equals(nameof(MyTestPart), contentTypePartDefinition.PartDefinition.Name))
{
return null;
}
Expand All @@ -28,7 +28,7 @@ public override IDisplayResult Edit(ContentTypePartDefinition contentTypePartDef

public override async Task<IDisplayResult> UpdateAsync(ContentTypePartDefinition contentTypePartDefinition, UpdateTypePartEditorContext context)
{
if (!String.Equals(nameof(MyTestPart), contentTypePartDefinition.PartDefinition.Name))
if (!string.Equals(nameof(MyTestPart), contentTypePartDefinition.PartDefinition.Name))
{
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ protected readonly struct RenderKeyValuePair
/// </summary>
/// <param name="_"></param>
/// <returns></returns>
/// <remarks>Given value may be Null, Nullable, Sring, or Boolean. Otherwise,
/// <remarks>Given value may be Null, Nullable, String, or Boolean. Otherwise,
/// makes a best effort to convert directly to string.</remarks>
private static string DefaultRender(object _)
{
Expand Down

0 comments on commit a2876bf

Please sign in to comment.