Skip to content

Commit

Permalink
changing data type var to Dictionary and changing Dictionary name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arne-Martensen authored and Fraser Greenroyd committed Aug 1, 2022
1 parent b7ca059 commit 90b3eca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RFEM_Engine/Compute/Profile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ public static IProfile GetSectionProfile(string profileName, rf3.DB_CRSC_PROPERT
// profileValues = profileNameArr[1].Split('x');//standard sections - Note: can have format "IPE 80" and "IPE 750x137"
//}

var dictionary= new Dictionary<string,string>()
Dictionary<string, string> germanEnglishTranslationDict = new Dictionary<string,string>()
{
{ "Rechteck", "Rectangle"},
{ "Rohr", "Pipe"},
{ "Kreis","Circle"},
{ "Rundstahl","Round"}
};

if (dictionary.ContainsKey(profileNameArr[0]))
if (germanEnglishTranslationDict.ContainsKey(profileNameArr[0]))
{
profileNameArr[0] = dictionary[profileNameArr[0]];
profileNameArr[0] = germanEnglishTranslationDict[profileNameArr[0]];
}

if (sectionDBProps != null)//section from RFEM Library including sections defined in RFEM model
Expand Down

0 comments on commit 90b3eca

Please sign in to comment.