630.
var par = Expression.Parameter(typeof(water_flow1), "current");
var cloneExpression = Expression.MemberInit(
Expression.New(typeof(water_flow1)),
Enumerable.Range(0, typeof(water_flow1).GetProperties().Length - 1).Select(i =>
Expression.Bind(
typeof(water_flow1).GetProperties()[i],
Expression.Property(par, typeof(water_flow1).GetProperties()[i])
)
).ToArray()
);
var cloneFunc = Expression.Lambda<Func<water_flow1, water_flow1>>(cloneExpression, "Clone", new[] { par }).Compile();
629.
public static TOut Copy<TIn, TOut>(TIn source) where TOut : new()
{
ParameterExpression parameterExpression = Expression.Parameter(typeof(TIn), "source");
MemberInitExpression memberInitExpression = Expression.MemberInit(
Expression.New(typeof(TOut)),
(from property in typeof(TOut).GetProperties()
where property.CanWrite
from sourceProperty in typeof(TIn).GetProperties()
where sourceProperty.Name == property.Name && sourceProperty.PropertyType == property.PropertyType
select Expression.Bind(property, Expression.Property(parameterExpression, sourceProperty))).ToArray()
);
Expression<Func<TIn, TOut>> lambda = Expression.Lambda<Func<TIn, TOut>>(memberInitExpression, parameterExpression);
return lambda.Compile()(source);
}
627. 我又被中国移动坑了,不是七天流量包吗?明明显示[某年某月某日某时某分某秒]失效,结果他还自动续费?月底流量包吗,也是自动续费,
上个月22号买的七天流量包,结果28号自动又给我续费了,又扣费了
上个月24号买的,月底流量包,明明显示月底失效,没想到今天一号就直接给我自动开通了,月底流量包,又扣费了。
上个月22号买的七天流量包,结果28号自动又给我续费了,又扣费了
上个月24号买的,月底流量包,明明显示月底失效,没想到今天一号就直接给我自动开通了,月底流量包,又扣费了。
621.
https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.99/bin/apache-tomcat-8.5.99-windows-x86.zip
https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.5/bin/apache-tomcat-8.5.5-windows-x86.zip