Hidistro.Entities/Commodities/SKUItem.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.Entities.Commodities
{
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
public class SKUItem : IComparable
{
private Dictionary<int, decimal> memberPrices;
private Dictionary<int, int> skuItems;
public int CompareTo(object obj)
{
SKUItem item = obj as SKUItem;
if (item == null)
{
return -1;
}
if (item.SkuItems.Count != this.SkuItems.Count)
{
return -1;
}
foreach (int num in item.SkuItems.Keys)
{
if (item.SkuItems[num] != this.SkuItems[num])
{
return -1;
}
}
return 0;
}
public decimal CostPrice { get; set; }
public Dictionary<int, decimal> MemberPrices
{
get
{
return (this.memberPrices ?? (this.memberPrices = new Dictionary<int, decimal>()));
}
}
public int ProductId { get; set; }
public decimal SalePrice { get; set; }
public string SKU { get; set; }
public string SkuId { get; set; }
public Dictionary<int, int> SkuItems
{
get
{
return (this.skuItems ?? (this.skuItems = new Dictionary<int, int>()));
}
}
public int Stock { get; set; }
后面还有 4 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
