public ReactConstantInfo(FieldInfo fieldInfo, ReactConstantAttribute constantAttribute) { ConstantName = constantAttribute.ConstantName ?? fieldInfo.Name; ConstantImpl = new Lazy <ReactConstantImpl>(() => MakeConstant(fieldInfo), LazyThreadSafetyMode.PublicationOnly); }
public ReactConstantInfo(PropertyInfo propertyInfo, ReactConstantAttribute constantAttribute) { ConstantName = constantAttribute.ConstantName ?? propertyInfo.Name; ConstantImpl = new Lazy <ReactConstantImpl>(() => MakeConstant(propertyInfo), LazyThreadSafetyMode.PublicationOnly); }