Example #1
0
 /// <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 LiteralDouble valueOf(System.String literal)
 {
     lock (typeof(CodeStreet.Selector.Parser.LiteralDouble))
     {
         //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"'
         LiteralDouble instance = (LiteralDouble) idMap_[literal];
         if (instance == null)
         {
             instance = new LiteralDouble(literal);
             object tempObject;
             tempObject = instance;
             idMap_[literal] = tempObject;
             System.Object generatedAux = tempObject;
         }
         return instance;
     }
 }
Example #2
0
 /// <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 LiteralDouble valueOf(System.String literal)
 {
     lock (typeof(CodeStreet.Selector.Parser.LiteralDouble))
     {
         //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"'
         LiteralDouble instance = (LiteralDouble)idMap_[literal];
         if (instance == null)
         {
             instance = new LiteralDouble(literal);
             object tempObject;
             tempObject      = instance;
             idMap_[literal] = tempObject;
             System.Object generatedAux = tempObject;
         }
         return(instance);
     }
 }