コード例 #1
0
ファイル: LiteralLong.cs プロジェクト: jamsel/jamsel
 /// <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 LiteralLong valueOf(System.String literal)
 {
     lock (typeof(CodeStreet.Selector.Parser.LiteralLong))
     {
         //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"'
         LiteralLong instance = (LiteralLong) idMap_[literal];
         if (instance == null)
         {
             instance = new LiteralLong(literal);
             object tempObject;
             tempObject = instance;
             idMap_[literal] = tempObject;
             System.Object generatedAux = tempObject;
         }
         return instance;
     }
 }
コード例 #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 LiteralLong valueOf(System.String literal)
 {
     lock (typeof(CodeStreet.Selector.Parser.LiteralLong))
     {
         //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"'
         LiteralLong instance = (LiteralLong)idMap_[literal];
         if (instance == null)
         {
             instance = new LiteralLong(literal);
             object tempObject;
             tempObject      = instance;
             idMap_[literal] = tempObject;
             System.Object generatedAux = tempObject;
         }
         return(instance);
     }
 }