/[RomCheater]/trunk/RomCheater.Logging/EnumNameValuePair.cs
ViewVC logotype

Diff of /trunk/RomCheater.Logging/EnumNameValuePair.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 268 by william, Sun Jun 3 19:47:47 2012 UTC revision 269 by william, Sun Jun 3 20:40:36 2012 UTC
# Line 161  namespace RomCheater.Logging Line 161  namespace RomCheater.Logging
161          {          {
162              return bitwise_or(new EnumNameValuePair<TValue>("",x), new EnumNameValuePair<TValue>("",y));              return bitwise_or(new EnumNameValuePair<TValue>("",x), new EnumNameValuePair<TValue>("",y));
163          }          }
164          internal static TValue bitwise_or(params EnumNameValuePair<TValue>[] values)          public static TValue bitwise_or(params EnumNameValuePair<TValue>[] values)
165          {          {
166              if (!(values.Length > 1 )) { throw new InvalidOperationException("bitwise_or must have at least two operands"); }              if (!(values.Length > 1 )) { throw new InvalidOperationException("bitwise_or must have at least two operands"); }
167              TValue value = default(TValue);              TValue value = default(TValue);
# Line 173  namespace RomCheater.Logging Line 173  namespace RomCheater.Logging
173          {          {
174              return bitwise_and(new EnumNameValuePair<TValue>("", x), new EnumNameValuePair<TValue>("", y));              return bitwise_and(new EnumNameValuePair<TValue>("", x), new EnumNameValuePair<TValue>("", y));
175          }          }
176          internal static TValue bitwise_and(params EnumNameValuePair<TValue>[] values)          public static TValue bitwise_and(params EnumNameValuePair<TValue>[] values)
177          {          {
178              if (!(values.Length > 1)) { throw new InvalidOperationException("bitwise_and must have at least two operands"); }              if (!(values.Length > 1)) { throw new InvalidOperationException("bitwise_and must have at least two operands"); }
179              TValue value = default(TValue);              TValue value = default(TValue);

Legend:
Removed from v.268  
changed lines
  Added in v.269

  ViewVC Help
Powered by ViewVC 1.1.22