コード例 #1
0
 public void MyWcfOperation(int entityId, other arguments)
 {
    lock (_locks.GetOrAdd(entityId, i => new Object())
    {
      // do stuff with entity with id = entityId
    }
 }
コード例 #2
0
    static void Main(string[] args)
    {
        other p = new other();

        Console.WriteLine(p);
        Console.ReadLine();
    }
コード例 #3
0
        public ActionResult DeleteConfirmed(int id)
        {
            other other = db.others.Find(id);

            db.others.Remove(other);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
コード例 #4
0
 public ActionResult Edit([Bind(Include = "OtherId,Title,Description,Image,PubDate")] other other)
 {
     if (ModelState.IsValid)
     {
         db.Entry(other).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(other));
 }
コード例 #5
0
        public ActionResult Create([Bind(Include = "OtherId,Title,Description,Image,PubDate")] other other)
        {
            if (ModelState.IsValid)
            {
                db.others.Add(other);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(other));
        }
コード例 #6
0
        // GET: /other/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            other other = db.others.Find(id);

            if (other == null)
            {
                return(HttpNotFound());
            }
            return(View(other));
        }
コード例 #7
0
 => obj is SynthesizedNamespaceSymbol other && Equals(other, compareKind);
コード例 #8
0
 public override Equals(object other) => Equals(other as NodeCoordinate);
コード例 #9
0
 => Other is ConstructSignature other && Aided(other, ExactlySame);
コード例 #10
0
 => other is ConsoleKeyCombination otherStricted?Equals(other : otherStricted) : false;
コード例 #11
0
 GaxPreconditions.CheckNotNull(other, nameof(other))._conditions, other._conditions.Comparer);
コード例 #12
0
        static void Main(string[] args)
        {
            other ot = new other();

            ot.sum();
        }
コード例 #13
0
 /// <summary>
 /// Determines whether this <see cref="Result"/> and the <paramref name="other"/> <see cref="String"/> are equal.
 /// </summary>
 /// <param name="other">The <see cref="String"/> to compare to</param>
 /// <returns><see langword="true"/> if the specified object is equal to the current object; otherwise, <see langword="false"/>.</returns>
 public Boolean Equals(String other) => !(other is null) && Source.Substring(Start, Length).Equals(other, StringComparison.CurrentCulture);
コード例 #14
0
 = other = > new MemberListItemViewModel(other);
コード例 #15
0
 Public Function Equals(other As ValueTuple) As Boolean
コード例 #16
0
 Public Function CompareTo(other As ValueTuple) As Integer
コード例 #17
-1
ファイル: Collide.cs プロジェクト: BrugernavnTaken/Zatch
 void OnTriggerStay2D(other: Collider2D)
 {
 }