/// <summary> Factory.</summary> /// <param name="literal">Literal. /// </param> /// <returns> Instance. /// </returns> //UPGRADE_NOTE: Synchronized keyword was removed from method 'valueOf'. Lock expression was added. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1027"' public static LiteralString valueOf(System.String literal) { lock (typeof(CodeStreet.Selector.Parser.LiteralString)) { //UPGRADE_TODO: Method 'java.util.Map.get' was converted to 'System.Collections.IDictionary.Item' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javautilMapget_javalangObject"' LiteralString instance = (LiteralString)idMap_[literal]; if (instance == null) { instance = new LiteralString(literal); object tempObject; tempObject = instance; idMap_[literal] = tempObject; System.Object generatedAux = tempObject; } return(instance); } }
/// <summary> Factory.</summary> /// <param name="literal">Literal. /// </param> /// <returns> Instance. /// </returns> //UPGRADE_NOTE: Synchronized keyword was removed from method 'valueOf'. Lock expression was added. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1027"' public static LiteralString valueOf(System.String literal) { lock (typeof(CodeStreet.Selector.Parser.LiteralString)) { //UPGRADE_TODO: Method 'java.util.Map.get' was converted to 'System.Collections.IDictionary.Item' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javautilMapget_javalangObject"' LiteralString instance = (LiteralString) idMap_[literal]; if (instance == null) { instance = new LiteralString(literal); object tempObject; tempObject = instance; idMap_[literal] = tempObject; System.Object generatedAux = tempObject; } return instance; } }